fromMap static method
override
Construct from Map.
Implementation
static MessageBotWriteAccessAllowed? 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 = WebApp.fromMap(_map['web_app']);
var by_request = _map['by_request']! as bool;
return MessageBotWriteAccessAllowed(
extra: extra,
clientId: clientId,
web_app: web_app,
by_request: by_request,
);
}