UpdateChatContactName$Mutation$UpdateChatContactName.fromJson constructor

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

Implementation

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