ChatEventsVersionedMixin$Events$EventChatItemPosted$Item$Node.fromJson constructor

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

Implementation

factory ChatEventsVersionedMixin$Events$EventChatItemPosted$Item$Node.fromJson(
    Map<String, dynamic> json) {
  switch (json['__typename'].toString()) {
    case r'ChatInfo':
      return ChatEventsVersionedMixin$Events$EventChatItemPosted$Item$Node$ChatInfo
          .fromJson(json);
    case r'ChatCall':
      return ChatEventsVersionedMixin$Events$EventChatItemPosted$Item$Node$ChatCall
          .fromJson(json);
    case r'ChatMessage':
      return ChatEventsVersionedMixin$Events$EventChatItemPosted$Item$Node$ChatMessage
          .fromJson(json);
    case r'ChatForward':
      return ChatEventsVersionedMixin$Events$EventChatItemPosted$Item$Node$ChatForward
          .fromJson(json);
    default:
  }
  return _$ChatEventsVersionedMixin$Events$EventChatItemPosted$Item$NodeFromJson(
      json);
}