CreateGroupChat$Mutation$CreateGroupChat.fromJson constructor

CreateGroupChat$Mutation$CreateGroupChat.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory CreateGroupChat$Mutation$CreateGroupChat.fromJson(
    Map<String, dynamic> json) {
  switch (json['__typename'].toString()) {
    case r'Chat':
      return CreateGroupChat$Mutation$CreateGroupChat$Chat.fromJson(json);
    case r'CreateGroupChatError':
      return CreateGroupChat$Mutation$CreateGroupChat$CreateGroupChatError
          .fromJson(json);
    default:
  }
  return _$CreateGroupChat$Mutation$CreateGroupChatFromJson(json);
}