UnfavoriteChatContact$Mutation$UnfavoriteChatContact.fromJson constructor

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

Implementation

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