toJson method
Implementation
core.Map<core.String, core.dynamic> toJson() => {
if (affiliatedDeviceId != null)
'affiliatedDeviceId': affiliatedDeviceId!,
if (deviceType != null) 'deviceType': deviceType!,
if (hostname != null) 'hostname': hostname!,
if (machine != null) 'machine': machine!,
};