NestedChatMessageMixin$RepliesTo$ChatMessageQuote$Attachments.fromJson constructor

NestedChatMessageMixin$RepliesTo$ChatMessageQuote$Attachments.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory NestedChatMessageMixin$RepliesTo$ChatMessageQuote$Attachments.fromJson(
    Map<String, dynamic> json) {
  switch (json['__typename'].toString()) {
    case r'ImageAttachment':
      return NestedChatMessageMixin$RepliesTo$ChatMessageQuote$Attachments$ImageAttachment
          .fromJson(json);
    case r'FileAttachment':
      return NestedChatMessageMixin$RepliesTo$ChatMessageQuote$Attachments$FileAttachment
          .fromJson(json);
    default:
  }
  return _$NestedChatMessageMixin$RepliesTo$ChatMessageQuote$AttachmentsFromJson(
      json);
}