CreateChatContact$Mutation$CreateChatContact.fromJson constructor

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

Implementation

factory CreateChatContact$Mutation$CreateChatContact.fromJson(
    Map<String, dynamic> json) {
  switch (json['__typename'].toString()) {
    case r'ChatContactEventsVersioned':
      return CreateChatContact$Mutation$CreateChatContact$ChatContactEventsVersioned
          .fromJson(json);
    case r'CreateChatContactError':
      return CreateChatContact$Mutation$CreateChatContact$CreateChatContactError
          .fromJson(json);
    default:
  }
  return _$CreateChatContact$Mutation$CreateChatContactFromJson(json);
}