fromMap static method
override
Construct from Map.
Implementation
static AttachmentMenuBotColor? 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 light_color = _map['light_color']! as int;
var dark_color = _map['dark_color']! as int;
return AttachmentMenuBotColor(
extra: extra,
clientId: clientId,
light_color: light_color,
dark_color: dark_color,
);
}