FavoriteChatContact$Mutation$FavoriteChatContact.fromJson constructor

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

Implementation

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