toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'id'] = this.id;
json[r'project'] = this.project;
json[r'state'] = this.state;
if (this.price != null) {
json[r'price'] = this.price;
} else {
json[r'price'] = null;
}
if (this.priceCurrency != null) {
json[r'price_currency'] = this.priceCurrency;
} else {
json[r'price_currency'] = null;
}
json[r'created'] = this.created.toUtc().toIso8601String();
json[r'modified'] = this.modified.toUtc().toIso8601String();
json[r'models'] = this.models;
json[r'comments'] = this.comments;
return json;
}