toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (this.year != null) {
json[r'year'] = this.year;
} else {
json[r'year'] = null;
}
if (this.make != null) {
json[r'make'] = this.make;
} else {
json[r'make'] = null;
}
if (this.model != null) {
json[r'model'] = this.model;
} else {
json[r'model'] = null;
}
if (this.trim != null) {
json[r'trim'] = this.trim;
} else {
json[r'trim'] = null;
}
if (this.vin != null) {
json[r'vin'] = this.vin;
} else {
json[r'vin'] = null;
}
if (this.primaryUse != null) {
json[r'primaryUse'] = this.primaryUse;
} else {
json[r'primaryUse'] = null;
}
if (this.ownershipStatus != null) {
json[r'ownershipStatus'] = this.ownershipStatus;
} else {
json[r'ownershipStatus'] = null;
}
if (this.fullCoverage != null) {
json[r'fullCoverage'] = this.fullCoverage;
} else {
json[r'fullCoverage'] = null;
}
return json;
}