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