ConfigurationFeatures.fromJson constructor
ConfigurationFeatures.fromJson(
- Object? json
Implementation
factory ConfigurationFeatures.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return ConfigurationFeatures(
customerUpdate: map['customer_update'] == null
? null
: ConfigurationCustomerUpdate.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
: ConfigurationSubscriptionCancel.fromJson(
map['subscription_cancel']),
subscriptionPause: map['subscription_pause'] == null
? null
: CheckoutCardInstallmentsOptions.fromJson(map['subscription_pause']),
subscriptionUpdate: map['subscription_update'] == null
? null
: ConfigurationSubscriptionUpdate.fromJson(
map['subscription_update']),
);
}