toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.brand != null) {
    json[r'brand'] = this.brand;
  } else {
    json[r'brand'] = null;
  }
  if (this.model != null) {
    json[r'model'] = this.model;
  } else {
    json[r'model'] = null;
  }
  if (this.os != null) {
    json[r'os'] = this.os;
  } else {
    json[r'os'] = null;
  }
  if (this.deviceType != null) {
    json[r'deviceType'] = this.deviceType;
  } else {
    json[r'deviceType'] = null;
  }
  if (this.name != null) {
    json[r'name'] = this.name;
  } else {
    json[r'name'] = null;
  }
  if (this.notes != null) {
    json[r'notes'] = this.notes;
  } else {
    json[r'notes'] = null;
  }
  return json;
}