AnswerInlineQuery.fromMap constructor
AnswerInlineQuery.fromMap(
- Map<String, dynamic> map
)
Implementation
AnswerInlineQuery.fromMap(Map<String, dynamic> map) {
extra = map['@extra'];
client_id = map['@client_id'];
inline_query_id = map['inline_query_id'];
is_personal = map['is_personal'];
if (map['results'] != null) {
results = [];
for (var someValue in map['results']) {
if (someValue != null) {
results?.add(TdApiMap.fromMap(someValue) as InputInlineQueryResult);
}
}
}
cache_time = map['cache_time'];
next_offset = map['next_offset'];
switch_pm_text = map['switch_pm_text'];
switch_pm_parameter = map['switch_pm_parameter'];
}