IncomingCallsTopEvents$Subscription$IncomingChatCallsTopEvents.fromJson constructor

IncomingCallsTopEvents$Subscription$IncomingChatCallsTopEvents.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory IncomingCallsTopEvents$Subscription$IncomingChatCallsTopEvents.fromJson(
    Map<String, dynamic> json) {
  switch (json['__typename'].toString()) {
    case r'SubscriptionInitialized':
      return IncomingCallsTopEvents$Subscription$IncomingChatCallsTopEvents$SubscriptionInitialized
          .fromJson(json);
    case r'IncomingChatCallsTop':
      return IncomingCallsTopEvents$Subscription$IncomingChatCallsTopEvents$IncomingChatCallsTop
          .fromJson(json);
    case r'EventIncomingChatCallsTopChatCallAdded':
      return IncomingCallsTopEvents$Subscription$IncomingChatCallsTopEvents$EventIncomingChatCallsTopChatCallAdded
          .fromJson(json);
    case r'EventIncomingChatCallsTopChatCallRemoved':
      return IncomingCallsTopEvents$Subscription$IncomingChatCallsTopEvents$EventIncomingChatCallsTopChatCallRemoved
          .fromJson(json);
    default:
  }
  return _$IncomingCallsTopEvents$Subscription$IncomingChatCallsTopEventsFromJson(
      json);
}