serialize method
Serializes information the current object
writer Serialization writer to use to serialize this model
Implementation
@override
void serialize(SerializationWriter writer) {
writer.writeIntValue('billing_cycle_anchor', billingCycleAnchor);
writer.writeIntValue('expires_at', expiresAt);
writer.writeCollectionOfObjectValues<SubscriptionItem>(
'subscription_items', subscriptionItems);
writer.writeIntValue('trial_end', trialEnd);
writer.writeBoolValue('trial_from_plan', value: trialFromPlan);
writer.writeAdditionalData(additionalData);
}