ChatEventsVersionedMixin$Events.fromJson constructor

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

Implementation

factory ChatEventsVersionedMixin$Events.fromJson(Map<String, dynamic> json) {
  switch (json['__typename'].toString()) {
    case r'EventChatTotalItemsCountUpdated':
      return ChatEventsVersionedMixin$Events$EventChatTotalItemsCountUpdated
          .fromJson(json);
    case r'EventChatCallMemberRedialed':
      return ChatEventsVersionedMixin$Events$EventChatCallMemberRedialed
          .fromJson(json);
    case r'EventChatCleared':
      return ChatEventsVersionedMixin$Events$EventChatCleared.fromJson(json);
    case r'EventChatItemHidden':
      return ChatEventsVersionedMixin$Events$EventChatItemHidden.fromJson(
          json);
    case r'EventChatMuted':
      return ChatEventsVersionedMixin$Events$EventChatMuted.fromJson(json);
    case r'EventChatDirectLinkUsageCountUpdated':
      return ChatEventsVersionedMixin$Events$EventChatDirectLinkUsageCountUpdated
          .fromJson(json);
    case r'EventChatTypingStarted':
      return ChatEventsVersionedMixin$Events$EventChatTypingStarted.fromJson(
          json);
    case r'EventChatTypingStopped':
      return ChatEventsVersionedMixin$Events$EventChatTypingStopped.fromJson(
          json);
    case r'EventChatHidden':
      return ChatEventsVersionedMixin$Events$EventChatHidden.fromJson(json);
    case r'EventChatDirectLinkUpdated':
      return ChatEventsVersionedMixin$Events$EventChatDirectLinkUpdated
          .fromJson(json);
    case r'EventChatItemDeleted':
      return ChatEventsVersionedMixin$Events$EventChatItemDeleted.fromJson(
          json);
    case r'EventChatItemEdited':
      return ChatEventsVersionedMixin$Events$EventChatItemEdited.fromJson(
          json);
    case r'EventChatCallStarted':
      return ChatEventsVersionedMixin$Events$EventChatCallStarted.fromJson(
          json);
    case r'EventChatUnreadItemsCountUpdated':
      return ChatEventsVersionedMixin$Events$EventChatUnreadItemsCountUpdated
          .fromJson(json);
    case r'EventChatCallFinished':
      return ChatEventsVersionedMixin$Events$EventChatCallFinished.fromJson(
          json);
    case r'EventChatCallMemberLeft':
      return ChatEventsVersionedMixin$Events$EventChatCallMemberLeft.fromJson(
          json);
    case r'EventChatCallMemberJoined':
      return ChatEventsVersionedMixin$Events$EventChatCallMemberJoined
          .fromJson(json);
    case r'EventChatLastItemUpdated':
      return ChatEventsVersionedMixin$Events$EventChatLastItemUpdated
          .fromJson(json);
    case r'EventChatDelivered':
      return ChatEventsVersionedMixin$Events$EventChatDelivered.fromJson(
          json);
    case r'EventChatCallMoved':
      return ChatEventsVersionedMixin$Events$EventChatCallMoved.fromJson(
          json);
    case r'EventChatRead':
      return ChatEventsVersionedMixin$Events$EventChatRead.fromJson(json);
    case r'EventChatItemPosted':
      return ChatEventsVersionedMixin$Events$EventChatItemPosted.fromJson(
          json);
    case r'EventChatCallDeclined':
      return ChatEventsVersionedMixin$Events$EventChatCallDeclined.fromJson(
          json);
    case r'EventChatFavorited':
      return ChatEventsVersionedMixin$Events$EventChatFavorited.fromJson(
          json);
    case r'EventChatUnfavorited':
      return ChatEventsVersionedMixin$Events$EventChatUnfavorited.fromJson(
          json);
    case r'EventChatCallConversationStarted':
      return ChatEventsVersionedMixin$Events$EventChatCallConversationStarted
          .fromJson(json);
    case r'EventChatCallAnswerTimeoutPassed':
      return ChatEventsVersionedMixin$Events$EventChatCallAnswerTimeoutPassed
          .fromJson(json);
    default:
  }
  return _$ChatEventsVersionedMixin$EventsFromJson(json);
}