fromMap static method
override
Construct from Map.
Implementation
static GetAllStickerEmojis? 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 sticker_type = StickerType.fromMap(_map['sticker_type'])!;
var query = _map['query']! as String;
var chat_id = _map['chat_id']! as int;
var return_only_main_emoji = _map['return_only_main_emoji']! as bool;
return GetAllStickerEmojis(
extra: extra,
clientId: clientId,
sticker_type: sticker_type,
query: query,
chat_id: chat_id,
return_only_main_emoji: return_only_main_emoji,
);
}