fromMap static method

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

Construct from Map.

Implementation

static AnswerWebAppQuery? 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 web_app_query_id = _map['web_app_query_id']! as String;
  var result = InputInlineQueryResult.fromMap(_map['result'])!;
  return AnswerWebAppQuery(
    extra: extra,
    clientId: clientId,
    web_app_query_id: web_app_query_id,
    result: result,
  );
}