fromMap static method
override
Construct from Map.
Implementation
static ReplyMarkupShowKeyboard? 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 rows = List<List<KeyboardButton>>.from(
(_map["rows"] ?? []).map(
(e) => List<KeyboardButton>.from(
(e ?? []).map(
(e) => KeyboardButton.fromMap(e),
),
),
),
);
var is_persistent = _map['is_persistent']! as bool;
var resize_keyboard = _map['resize_keyboard']! as bool;
var one_time = _map['one_time']! as bool;
var is_personal = _map['is_personal']! as bool;
var input_field_placeholder = _map['input_field_placeholder']! as String;
return ReplyMarkupShowKeyboard(
extra: extra,
clientId: clientId,
rows: rows,
is_persistent: is_persistent,
resize_keyboard: resize_keyboard,
one_time: one_time,
is_personal: is_personal,
input_field_placeholder: input_field_placeholder,
);
}