GetMessage$Query$ChatItem$Node.fromJson constructor
GetMessage$Query$ChatItem$Node.fromJson( - Map<String, dynamic> json
)
Implementation
factory GetMessage$Query$ChatItem$Node.fromJson(Map<String, dynamic> json) {
switch (json['__typename'].toString()) {
case r'ChatInfo':
return GetMessage$Query$ChatItem$Node$ChatInfo.fromJson(json);
case r'ChatCall':
return GetMessage$Query$ChatItem$Node$ChatCall.fromJson(json);
case r'ChatMessage':
return GetMessage$Query$ChatItem$Node$ChatMessage.fromJson(json);
case r'ChatForward':
return GetMessage$Query$ChatItem$Node$ChatForward.fromJson(json);
default:
}
return _$GetMessage$Query$ChatItem$NodeFromJson(json);
}