fromMap static method
override
Construct from Map.
Implementation
static GetWebAppLinkUrl? 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 chat_id = _map['chat_id']! as int;
var bot_user_id = _map['bot_user_id']! as int;
var web_app_short_name = _map['web_app_short_name']! as String;
var start_parameter = _map['start_parameter']! as String;
var theme = ThemeParameters.fromMap(_map['theme']);
var application_name = _map['application_name']! as String;
var allow_write_access = _map['allow_write_access']! as bool;
return GetWebAppLinkUrl(
extra: extra,
clientId: clientId,
chat_id: chat_id,
bot_user_id: bot_user_id,
web_app_short_name: web_app_short_name,
start_parameter: start_parameter,
theme: theme,
application_name: application_name,
allow_write_access: allow_write_access,
);
}