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