fromJson static method
Implementation
static ConnectedWebsite? fromJson(Map<String, dynamic>? json) {
if (json == null) {
return null;
}
return ConnectedWebsite(
id: (json['id'] is int
? json['id'] as int
: int.tryParse(json['id']?.toString() ?? '')) ??
0,
domainName: (json['domain_name'] as String?) ?? '',
botUserId: (json['bot_user_id'] as int?) ?? 0,
browser: (json['browser'] as String?) ?? '',
platform: (json['platform'] as String?) ?? '',
logInDate: (json['log_in_date'] as int?) ?? 0,
lastActiveDate: (json['last_active_date'] as int?) ?? 0,
ipAddress: (json['ip_address'] as String?) ?? '',
location: (json['location'] as String?) ?? '',
);
}