ForumTopicInfo.fromJson constructor

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

Parses a ForumTopicInfo from TDLib JSON.

Implementation

factory ForumTopicInfo.fromJson(Map<String, dynamic> json) => ForumTopicInfo(
  chatId: _readInt(json['chat_id']),
  forumTopicId: _readInt(json['forum_topic_id']),
  name: _readString(json['name']),
  icon: _readObject(json['icon'], ForumTopicIcon.fromJson),
  creationDate: _readInt(json['creation_date']),
  creatorId: _readObject(json['creator_id'], MessageSender.fromJson),
  isGeneral: _readBool(json['is_general']),
  isOutgoing: _readBool(json['is_outgoing']),
  isClosed: _readBool(json['is_closed']),
  isHidden: _readBool(json['is_hidden']),
  isNameImplicit: _readBool(json['is_name_implicit']),
  extra: json['@extra'],
  clientId: _readClientId(json['@client_id']),
);