BillingPortalConfigurationUpdateOptionsFeaturesCustomerUpdate.fromJson constructor
BillingPortalConfigurationUpdateOptionsFeaturesCustomerUpdate.fromJson(
- Object? json
Implementation
factory BillingPortalConfigurationUpdateOptionsFeaturesCustomerUpdate.fromJson(
Object? json) {
final map = (json as Map).cast<String, Object?>();
return BillingPortalConfigurationUpdateOptionsFeaturesCustomerUpdate(
allowedUpdates: map['allowed_updates'] == null
? null
: (map['allowed_updates'] as List<Object?>)
.map((el) => PortalCustomerUpdateAllowedUpdatesItem.fromJson(el))
.toList(),
enabled: map['enabled'] == null ? null : (map['enabled'] as bool),
);
}