toJson method

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

Converts this object to TDLib JSON.

Implementation

@override
Map<String, dynamic> toJson() => {
  '@type': CONSTRUCTOR,
  'total_count': totalCount,
  'topics': [for (final e in topics) e.toJson()],
  'next_offset_date': nextOffsetDate,
  'next_offset_message_id': nextOffsetMessageId,
  'next_offset_forum_topic_id': nextOffsetForumTopicId,
};