fromMap static method
override
Construct from Map.
Implementation
static AnswerInlineQuery? 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 inline_query_id = _map['inline_query_id']! as int64;
var is_personal = _map['is_personal']! as bool;
var button = InlineQueryResultsButton.fromMap(_map['button']);
var results = List<InputInlineQueryResult>.from(
(_map["results"] ?? []).map(
(e) => InputInlineQueryResult.fromMap(e),
),
);
var cache_time = _map['cache_time']! as int;
var next_offset = _map['next_offset']! as String;
return AnswerInlineQuery(
extra: extra,
clientId: clientId,
inline_query_id: inline_query_id,
is_personal: is_personal,
button: button,
results: results,
cache_time: cache_time,
next_offset: next_offset,
);
}