ForumTopicCreated constructor

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

Creates a new ForumTopicCreated object.

Implementation

const factory ForumTopicCreated({
  /// 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,
}) = _ForumTopicCreated;