fromMap static method
override
Construct from Map.
Implementation
static DeleteCommands? 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 scope = BotCommandScope.fromMap(_map['scope']);
var language_code = _map['language_code']! as String;
return DeleteCommands(
extra: extra,
clientId: clientId,
scope: scope,
language_code: language_code,
);
}