GetAttachments$Query$ChatItem$Node$ChatMessage$Attachments.fromJson constructor

GetAttachments$Query$ChatItem$Node$ChatMessage$Attachments.fromJson(
  1. Map<String, dynamic> json
)

Implementation

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