toJson method
Implementation
core.Map<core.String, core.dynamic> toJson() => {
if (attributes != null) 'attributes': attributes!,
if (customData != null) 'customData': customData!,
if (deviceInfo != null) 'deviceInfo': deviceInfo!,
if (id != null) 'id': id!,
if (name != null) 'name': name!,
if (notificationSupportedByAgent != null)
'notificationSupportedByAgent': notificationSupportedByAgent!,
if (otherDeviceIds != null) 'otherDeviceIds': otherDeviceIds!,
if (roomHint != null) 'roomHint': roomHint!,
if (structureHint != null) 'structureHint': structureHint!,
if (traits != null) 'traits': traits!,
if (type != null) 'type': type!,
if (willReportState != null) 'willReportState': willReportState!,
};