ForumTopic constructor
const
ForumTopic({
- @JsonKey.new(name: 'message_thread_id') required int messageThreadId,
- @JsonKey.new(name: 'name') required String name,
- @JsonKey.new(name: 'icon_color') required int iconColor,
- @JsonKey.new(name: 'icon_custom_emoji_id') String? iconCustomEmojiId,
- @JsonKey.new(name: 'is_name_implicit') bool? isNameImplicit,
Creates a new ForumTopic object.
Implementation
const factory ForumTopic({
/// Unique identifier of the forum topic
@JsonKey(name: 'message_thread_id') required int 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,
/// Optional. True, if the name of the topic wasn't specified explicitly by its creator and likely needs to be changed by the bot
@JsonKey(name: 'is_name_implicit') bool? isNameImplicit,
}) = _ForumTopic;