toJson method

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

Object to Map serializer

Implementation

@override
Map<String, dynamic> toJson() {
  return {
    '@type': 'forumTopicInfo',
    if (extra != null) '@extra': extra,
    'message_thread_id': message_thread_id,
    'name': name,
    'icon': icon,
    'creation_date': creation_date,
    'creator_id': creator_id,
    'is_general': is_general,
    'is_outgoing': is_outgoing,
    'is_closed': is_closed,
    'is_hidden': is_hidden
  };
}