fromMap static method
override
Construct from Map.
Implementation
static UnconfirmedSession? 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 id = _map['id']! as int64;
var log_in_date = _map['log_in_date']! as int;
var device_model = _map['device_model']! as String;
var location = _map['location']! as String;
return UnconfirmedSession(
extra: extra,
clientId: clientId,
id: id,
log_in_date: log_in_date,
device_model: device_model,
location: location,
);
}