toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  Map<String, dynamic> result = {};
  if (name != null) {
    result["name"] = name;
  }
  if (manufacturer != null) {
    result["manufacturer"] = manufacturer;
  }
  if (model != null) {
    result["model"] = model;
  }
  if (hardwareVersion != null) {
    result["hardwareVersion"] = hardwareVersion;
  }
  if (softwareVersion != null) {
    result["softwareVersion"] = softwareVersion;
  }

  return result;
}