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