toJson method
Implementation
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['id'] = this.id;
data['description'] = this.description;
data['name'] = this.name;
data['priceType'] = this.priceType;
data['recurringChargePeriod'] = this.recurringChargePeriod;
data['unitOfMeasure'] = this.unitOfMeasure;
data['billingAccount'] = this.billingAccount;
if (this.price != null) {
data['price'] = this.price!.toJson();
}
if (this.productOfferingPrice != null) {
data['productOfferingPrice'] = this.productOfferingPrice!.toJson();
}
data['atBaseType'] = this.atBaseType;
data['atSchemaLocation'] = this.atSchemaLocation;
data['atType'] = this.atType;
return data;
}