toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() {
  final attributes = this.attributes;
  final customData = this.customData;
  final deviceInfo = this.deviceInfo;
  final id = this.id;
  final name = this.name;
  final notificationSupportedByAgent = this.notificationSupportedByAgent;
  final otherDeviceIds = this.otherDeviceIds;
  final roomHint = this.roomHint;
  final structureHint = this.structureHint;
  final traits = this.traits;
  final type = this.type;
  final willReportState = this.willReportState;
  return {
    'attributes': ?attributes,
    'customData': ?customData,
    'deviceInfo': ?deviceInfo,
    'id': ?id,
    'name': ?name,
    'notificationSupportedByAgent': ?notificationSupportedByAgent,
    'otherDeviceIds': ?otherDeviceIds,
    'roomHint': ?roomHint,
    'structureHint': ?structureHint,
    'traits': ?traits,
    'type': ?type,
    'willReportState': ?willReportState,
  };
}