ForumTopic.fromMap constructor

ForumTopic.fromMap(
  1. Map<String, dynamic> map
)

Implementation

ForumTopic.fromMap(Map<String, dynamic> map) {
  extra = map['@extra'];
  client_id = map['@client_id'];
  if (map['info'] != null) {
    info = TdApiMap.fromMap(map['info']) as ForumTopicInfo;
  }
  if (map['last_message'] != null) {
    last_message = TdApiMap.fromMap(map['last_message']) as Message;
  }
  is_pinned = map['is_pinned'];
  unread_count = map['unread_count'];
  last_read_inbox_message_id = map['last_read_inbox_message_id'];
  last_read_outbox_message_id = map['last_read_outbox_message_id'];
  unread_mention_count = map['unread_mention_count'];
  unread_reaction_count = map['unread_reaction_count'];
  if (map['notification_settings'] != null) {
    notification_settings = TdApiMap.fromMap(map['notification_settings']) as ChatNotificationSettings;
  }
  if (map['draft_message'] != null) {
    draft_message = TdApiMap.fromMap(map['draft_message']) as DraftMessage;
  }
}