toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'rooms'] = this.rooms;
if (this.board != null) {
json[r'board'] = this.board;
} else {
json[r'board'] = null;
}
if (this.taxes != null) {
json[r'taxes'] = this.taxes;
} else {
json[r'taxes'] = null;
}
if (this.priceIsBinding != null) {
json[r'priceIsBinding'] = this.priceIsBinding;
} else {
json[r'priceIsBinding'] = null;
}
json[r'nightlyPrices'] = this.nightlyPrices;
json[r'rateTags'] = this.rateTags;
json[r'remarks'] = this.remarks;
json[r'rateConditions'] = this.rateConditions;
if (this.withTransfers != null) {
json[r'withTransfers'] = this.withTransfers;
} else {
json[r'withTransfers'] = null;
}
json[r'rateRules'] = this.rateRules;
if (this.amendabilityStatus != null) {
json[r'amendabilityStatus'] = this.amendabilityStatus;
} else {
json[r'amendabilityStatus'] = null;
}
json[r'surcharges'] = this.surcharges;
if (this.minimumSellingPrice != null) {
json[r'minimumSellingPrice'] = this.minimumSellingPrice;
} else {
json[r'minimumSellingPrice'] = null;
}
if (this.allowsSpecialRequests != null) {
json[r'allowsSpecialRequests'] = this.allowsSpecialRequests;
} else {
json[r'allowsSpecialRequests'] = null;
}
if (this.specialRequestOptions != null) {
json[r'specialRequestOptions'] = this.specialRequestOptions;
} else {
json[r'specialRequestOptions'] = null;
}
return json;
}