toJson method
Implementation
Map<String, Object?> toJson() => {
'appKey': appKey,
if (displayName != null) 'displayName': displayName,
if (bundleId != null) 'bundleId': bundleId,
'deviceId': deviceId,
'platform': platform,
if (deviceName != null) 'deviceName': deviceName,
if (osVersion != null) 'osVersion': osVersion,
if (projectDir != null) 'projectDir': projectDir,
'firstSeen': firstSeen.toIso8601String(),
'lastSeen': lastSeen.toIso8601String(),
'attachCount': attachCount,
};