toJson method

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

Implementation

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