toJson method

  1. @override
Map<String, dynamic> toJson()
override

Implementation

@override
Map<String, dynamic> toJson() {
  switch ($$typename) {
    case r'ChatInfo':
      return (this
              as ChatEventsVersionedMixin$Events$EventChatItemPosted$Item$Node$ChatInfo)
          .toJson();
    case r'ChatCall':
      return (this
              as ChatEventsVersionedMixin$Events$EventChatItemPosted$Item$Node$ChatCall)
          .toJson();
    case r'ChatMessage':
      return (this
              as ChatEventsVersionedMixin$Events$EventChatItemPosted$Item$Node$ChatMessage)
          .toJson();
    case r'ChatForward':
      return (this
              as ChatEventsVersionedMixin$Events$EventChatItemPosted$Item$Node$ChatForward)
          .toJson();
    default:
  }
  return _$ChatEventsVersionedMixin$Events$EventChatItemPosted$Item$NodeToJson(
      this);
}