ForumTopic constructor

const ForumTopic({
  1. @JsonKey(name: 'message_thread_id') required String messageThreadId,
  2. @JsonKey(name: 'name') required String name,
  3. @JsonKey(name: 'icon_color') required int iconColor,
  4. @JsonKey(name: 'icon_custom_emoji_id') String? iconCustomEmojiId,
})

Creates a new ForumTopic object.

Implementation

const factory ForumTopic({
  /// Unique identifier of the forum topic
  @JsonKey(name: 'message_thread_id') required String messageThreadId,

  /// Name of the topic
  @JsonKey(name: 'name') required String name,

  /// Color of the topic icon in RGB format
  @JsonKey(name: 'icon_color') required int iconColor,

  /// Optional. Unique identifier of the custom emoji shown as the topic icon
  @JsonKey(name: 'icon_custom_emoji_id') String? iconCustomEmojiId,
}) = _ForumTopic;