toMap method
Implementation
Map<String, Object?> toMap() {
final conf = <String, Object?>{
'userId': userId,
'networkUserId': networkUserId,
'domainUserId': domainUserId,
'userAgent': userAgent,
'ipAddress': ipAddress,
'timezone': timezone,
'language': language,
'screenResolution': screenResolution?.toList(),
'screenViewport': screenViewport?.toList(),
'colorDepth': colorDepth
};
conf.removeWhere((key, value) => value == null);
return conf;
}