GetMessages$Query$Chat$Items$Edges$Node.fromJson constructor

GetMessages$Query$Chat$Items$Edges$Node.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory GetMessages$Query$Chat$Items$Edges$Node.fromJson(
    Map<String, dynamic> json) {
  switch (json['__typename'].toString()) {
    case r'ChatInfo':
      return GetMessages$Query$Chat$Items$Edges$Node$ChatInfo.fromJson(json);
    case r'ChatCall':
      return GetMessages$Query$Chat$Items$Edges$Node$ChatCall.fromJson(json);
    case r'ChatMessage':
      return GetMessages$Query$Chat$Items$Edges$Node$ChatMessage.fromJson(
          json);
    case r'ChatForward':
      return GetMessages$Query$Chat$Items$Edges$Node$ChatForward.fromJson(
          json);
    default:
  }
  return _$GetMessages$Query$Chat$Items$Edges$NodeFromJson(json);
}