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