toJson method

  1. @override
Map<String, dynamic> toJson()
override

Implementation

@override
Map<String, dynamic> toJson() {
  switch ($$typename) {
    case r'ImageAttachment':
      return (this as ChatMessageMixin$Attachments$ImageAttachment).toJson();
    case r'FileAttachment':
      return (this as ChatMessageMixin$Attachments$FileAttachment).toJson();
    default:
  }
  return _$ChatMessageMixin$AttachmentsToJson(this);
}