ReplyMarkupShowKeyboard.fromMap constructor
ReplyMarkupShowKeyboard.fromMap(
- Map<String, dynamic> map
)
Implementation
ReplyMarkupShowKeyboard.fromMap(Map<String, dynamic> map) {
extra = map['@extra'];
client_id = map['@client_id'];
if (map['rows'] != null) {
rows = [];
for (var someValues in map['rows']) {
var objs = <KeyboardButton>[];
for (var someValue in someValues) {
if (someValue != null) {
objs.add(TdApiMap.fromMap(someValue) as KeyboardButton);
}
}
rows?.add(objs);
}
}
is_persistent = map['is_persistent'];
resize_keyboard = map['resize_keyboard'];
one_time = map['one_time'];
is_personal = map['is_personal'];
input_field_placeholder = map['input_field_placeholder'];
}