ForumTopic class abstract

This object represents a forum topic.

Annotations
  • @freezed

Constructors

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

Properties

copyWith → $ForumTopicCopyWith<ForumTopic>
Create a copy of ForumTopic 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
messageThreadId → int
Unique identifier of the forum topic
no setterinherited
name → String
Name of the topic
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Operators

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