ForumTopicCreated class abstract

This object represents a service message about a new forum topic created in the chat.

Available extensions
Annotations
  • @freezed

Constructors

ForumTopicCreated({@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 ForumTopicCreated object.
const
factory
ForumTopicCreated.fromJson(Map<String, dynamic> json)
Creates a new ForumTopicCreated object from json.
factory

Properties

copyWith → $ForumTopicCreatedCopyWith<ForumTopicCreated>
Create a copy of ForumTopicCreated with the given fields replaced by the non-null parameter values.
no setterinherited
hashCode → int
The hash code for this object.
no setterinherited
iconColor → int
Color of the topic icon in RGB format
no setterinherited
iconCustomEmojiId → String?
Optional. Unique identifier of the custom emoji shown as the topic icon
no setterinherited
isNameImplicit → bool?
Optional. True, if the name of the topic wasn't specified explicitly by its creator and likely needs to be changed by the bot
no setterinherited
name → String
Name of the topic
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

map<TResult extends Object?>(TResult $default(_ForumTopicCreated value)) → TResult

Available on ForumTopicCreated, provided by the ForumTopicCreatedPatterns extension

A switch-like method, using callbacks.
mapOrNull<TResult extends Object?>(TResult? $default(_ForumTopicCreated value)?) → TResult?

Available on ForumTopicCreated, provided by the ForumTopicCreatedPatterns extension

A variant of map that fallback to returning null.
maybeMap<TResult extends Object?>(TResult $default(_ForumTopicCreated value)?, {required TResult orElse()}) → TResult

Available on ForumTopicCreated, provided by the ForumTopicCreatedPatterns extension

A variant of map that fallback to returning orElse.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Serializes this ForumTopicCreated to a JSON map.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited