toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'productType'] = this.productType;
json[r'publicId'] = this.publicId;
if (this.quantity != null) {
json[r'quantity'] = this.quantity;
} else {
json[r'quantity'] = null;
}
if (this.name != null) {
json[r'name'] = this.name;
} else {
json[r'name'] = null;
}
if (this.price != null) {
json[r'price'] = this.price;
} else {
json[r'price'] = null;
}
return json;
}