fromMap static method

ReplyMarkupForceReply? fromMap(
  1. Map<String, dynamic>? _map
)
override

Construct from Map.

Implementation

static ReplyMarkupForceReply? 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 is_personal = _map['is_personal']! as bool;
  var input_field_placeholder = _map['input_field_placeholder']! as String;
  return ReplyMarkupForceReply(
    extra: extra,
    clientId: clientId,
    is_personal: is_personal,
    input_field_placeholder: input_field_placeholder,
  );
}