toJson method

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

Implementation

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