ForumTopic.fromJson constructor

ForumTopic.fromJson(
  1. Map<String, dynamic> json
)

Creates a new ForumTopic object from json.

Implementation

factory ForumTopic.fromJson(Map<String, dynamic> json) {
  return ForumTopic(
    messageThreadId: json['message_thread_id'] as String,
    name: json['name'] as String,
    iconColor: json['icon_color'] as int,
    iconCustomEmojiId: json['icon_custom_emoji_id'] as String?,
  );
}