ChatContactEventsVersionedMixin$Events.fromJson constructor

ChatContactEventsVersionedMixin$Events.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory ChatContactEventsVersionedMixin$Events.fromJson(
    Map<String, dynamic> json) {
  switch (json['__typename'].toString()) {
    case r'EventChatContactPhoneRemoved':
      return ChatContactEventsVersionedMixin$Events$EventChatContactPhoneRemoved
          .fromJson(json);
    case r'EventChatContactFavorited':
      return ChatContactEventsVersionedMixin$Events$EventChatContactFavorited
          .fromJson(json);
    case r'EventChatContactEmailAdded':
      return ChatContactEventsVersionedMixin$Events$EventChatContactEmailAdded
          .fromJson(json);
    case r'EventChatContactEmailRemoved':
      return ChatContactEventsVersionedMixin$Events$EventChatContactEmailRemoved
          .fromJson(json);
    case r'EventChatContactCreated':
      return ChatContactEventsVersionedMixin$Events$EventChatContactCreated
          .fromJson(json);
    case r'EventChatContactGroupAdded':
      return ChatContactEventsVersionedMixin$Events$EventChatContactGroupAdded
          .fromJson(json);
    case r'EventChatContactNameUpdated':
      return ChatContactEventsVersionedMixin$Events$EventChatContactNameUpdated
          .fromJson(json);
    case r'EventChatContactGroupRemoved':
      return ChatContactEventsVersionedMixin$Events$EventChatContactGroupRemoved
          .fromJson(json);
    case r'EventChatContactUserAdded':
      return ChatContactEventsVersionedMixin$Events$EventChatContactUserAdded
          .fromJson(json);
    case r'EventChatContactUserRemoved':
      return ChatContactEventsVersionedMixin$Events$EventChatContactUserRemoved
          .fromJson(json);
    case r'EventChatContactPhoneAdded':
      return ChatContactEventsVersionedMixin$Events$EventChatContactPhoneAdded
          .fromJson(json);
    default:
  }
  return _$ChatContactEventsVersionedMixin$EventsFromJson(json);
}