ChatEvents$Subscription$ChatEvents.fromJson constructor
ChatEvents$Subscription$ChatEvents.fromJson( - Map<String, dynamic> json
)
Implementation
factory ChatEvents$Subscription$ChatEvents.fromJson(
Map<String, dynamic> json) {
switch (json['__typename'].toString()) {
case r'SubscriptionInitialized':
return ChatEvents$Subscription$ChatEvents$SubscriptionInitialized
.fromJson(json);
case r'Chat':
return ChatEvents$Subscription$ChatEvents$Chat.fromJson(json);
case r'ChatEventsVersioned':
return ChatEvents$Subscription$ChatEvents$ChatEventsVersioned.fromJson(
json);
default:
}
return _$ChatEvents$Subscription$ChatEventsFromJson(json);
}