fromJson static method
Implementation
static ForumTopicInfo? fromJson(Map<String, dynamic>? json) {
if (json == null) {
return null;
}
return ForumTopicInfo(
chatId: (json['chat_id'] as int?) ?? 0,
forumTopicId: (json['forum_topic_id'] as int?) ?? 0,
name: (json['name'] as String?) ?? '',
icon: ForumTopicIcon.fromJson(tdMapFromJson(json['icon'])),
creationDate: (json['creation_date'] as int?) ?? 0,
creatorId: MessageSender.fromJson(tdMapFromJson(json['creator_id'])),
isGeneral: (json['is_general'] as bool?) ?? false,
isOutgoing: (json['is_outgoing'] as bool?) ?? false,
isClosed: (json['is_closed'] as bool?) ?? false,
isHidden: (json['is_hidden'] as bool?) ?? false,
isNameImplicit: (json['is_name_implicit'] as bool?) ?? false,
);
}