fromMap static method
override
Construct from Map.
Implementation
static ChatFolderInfo? fromMap(Map<String, dynamic>? _map) {
if (_map == null) return null;
var _ = _map["@type"];
if (_ != CONSTRUCTOR) return null;
var extra = _map['@extra'];
var clientId = _map['@clientId'];
var id = _map['id']! as int;
var title = _map['title']! as String;
var icon = ChatFolderIcon.fromMap(_map['icon'])!;
var is_shareable = _map['is_shareable']! as bool;
var has_my_invite_links = _map['has_my_invite_links']! as bool;
return ChatFolderInfo(
extra: extra,
clientId: clientId,
id: id,
title: title,
icon: icon,
is_shareable: is_shareable,
has_my_invite_links: has_my_invite_links,
);
}