toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'previous_plan'] = this.previousPlan;
json[r'previous_price'] = this.previousPrice;
json[r'effective_at'] = this.effectiveAt;
json[r'effective_mode'] = this.effectiveMode;
if (this.nextBillingDate != null) {
json[r'next_billing_date'] = this.nextBillingDate;
} else {
json[r'next_billing_date'] = null;
}
json[r'charged_immediately'] = this.chargedImmediately;
if (this.immediateCharge != null) {
json[r'immediate_charge'] = this.immediateCharge;
} else {
json[r'immediate_charge'] = null;
}
json[r'previous_subscription_item_status'] =
this.previousSubscriptionItemStatus;
json[r'previous_subscription_item_id'] = this.previousSubscriptionItemId;
return json;
}