toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  json[r'id'] = this.id;
  if (this.name != null) {
    json[r'name'] = this.name;
  } else {
    json[r'name'] = null;
  }
  if (this.groupId != null) {
    json[r'groupId'] = this.groupId;
  } else {
    json[r'groupId'] = null;
  }
  if (this.serialCode != null) {
    json[r'serialCode'] = this.serialCode;
  } else {
    json[r'serialCode'] = null;
  }
  if (this.status != null) {
    json[r'status'] = this.status;
  } else {
    json[r'status'] = null;
  }
  if (this.description != null) {
    json[r'description'] = this.description;
  } else {
    json[r'description'] = null;
  }
  if (this.ingestionConfigData != null) {
    json[r'ingestionConfigData'] = this.ingestionConfigData;
  } else {
    json[r'ingestionConfigData'] = null;
  }
  if (this.deviceModel != null) {
    json[r'deviceModel'] = this.deviceModel;
  } else {
    json[r'deviceModel'] = null;
  }
  return json;
}