serialize method
Serializes information the current object
writer Serialization writer to use to serialize this model
Implementation
@override
void serialize(SerializationWriter writer) {
writer.writeObjectValue<SubscriptionItemBillingThresholds>(
'billing_thresholds', billingThresholds);
writer.writeCollectionOfObjectValues<DiscountsResourceStackableDiscount>(
'discounts', discounts);
writer.writeObjectValue<SubscriptionScheduleConfigurationItemMetadata>(
'metadata', metadata);
writer.writeObjectValue<SubscriptionScheduleConfigurationItemPrice>(
'price', price);
writer.writeIntValue('quantity', quantity);
writer.writeCollectionOfObjectValues<TaxRate>('tax_rates', taxRates);
writer.writeAdditionalData(additionalData);
}