BillingPortalConfigurationUpdateOptionsFeatures.fromJson constructor
BillingPortalConfigurationUpdateOptionsFeatures.fromJson(
- Object? json
Implementation
factory BillingPortalConfigurationUpdateOptionsFeatures.fromJson(
Object? json) {
final map = (json as Map).cast<String, Object?>();
return BillingPortalConfigurationUpdateOptionsFeatures(
customerUpdate: map['customer_update'] == null
? null
: BillingPortalConfigurationUpdateOptionsFeaturesCustomerUpdate
.fromJson(map['customer_update']),
invoiceHistory: map['invoice_history'] == null
? null
: PortalSubscriptionPause.fromJson(map['invoice_history']),
paymentMethodUpdate: map['payment_method_update'] == null
? null
: PortalSubscriptionPause.fromJson(map['payment_method_update']),
subscriptionCancel: map['subscription_cancel'] == null
? null
: BillingPortalConfigurationUpdateOptionsFeaturesSubscriptionCancel
.fromJson(map['subscription_cancel']),
subscriptionPause: map['subscription_pause'] == null
? null
: CheckoutCardInstallmentsOptions.fromJson(map['subscription_pause']),
subscriptionUpdate: map['subscription_update'] == null
? null
: BillingPortalConfigurationUpdateOptionsFeaturesSubscriptionUpdate
.fromJson(map['subscription_update']),
);
}