ChatCallEventsVersionedMixin$Events.fromJson constructor

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

Implementation

factory ChatCallEventsVersionedMixin$Events.fromJson(
    Map<String, dynamic> json) {
  switch (json['__typename'].toString()) {
    case r'EventChatCallMemberRedialed':
      return ChatCallEventsVersionedMixin$Events$EventChatCallMemberRedialed
          .fromJson(json);
    case r'EventChatCallMemberUndialed':
      return ChatCallEventsVersionedMixin$Events$EventChatCallMemberUndialed
          .fromJson(json);
    case r'EventChatCallAnswerTimeoutPassed':
      return ChatCallEventsVersionedMixin$Events$EventChatCallAnswerTimeoutPassed
          .fromJson(json);
    case r'EventChatCallFinished':
      return ChatCallEventsVersionedMixin$Events$EventChatCallFinished
          .fromJson(json);
    case r'EventChatCallRoomReady':
      return ChatCallEventsVersionedMixin$Events$EventChatCallRoomReady
          .fromJson(json);
    case r'EventChatCallMemberLeft':
      return ChatCallEventsVersionedMixin$Events$EventChatCallMemberLeft
          .fromJson(json);
    case r'EventChatCallMemberJoined':
      return ChatCallEventsVersionedMixin$Events$EventChatCallMemberJoined
          .fromJson(json);
    case r'EventChatCallHandLowered':
      return ChatCallEventsVersionedMixin$Events$EventChatCallHandLowered
          .fromJson(json);
    case r'EventChatCallMoved':
      return ChatCallEventsVersionedMixin$Events$EventChatCallMoved.fromJson(
          json);
    case r'EventChatCallHandRaised':
      return ChatCallEventsVersionedMixin$Events$EventChatCallHandRaised
          .fromJson(json);
    case r'EventChatCallDeclined':
      return ChatCallEventsVersionedMixin$Events$EventChatCallDeclined
          .fromJson(json);
    case r'EventChatCallConversationStarted':
      return ChatCallEventsVersionedMixin$Events$EventChatCallConversationStarted
          .fromJson(json);
    default:
  }
  return _$ChatCallEventsVersionedMixin$EventsFromJson(json);
}