BillingPortalSessionFlowSubscriptionUpdateConfirm.fromJson constructor
BillingPortalSessionFlowSubscriptionUpdateConfirm.fromJson(
- Object? json
Implementation
factory BillingPortalSessionFlowSubscriptionUpdateConfirm.fromJson(
Object? json) {
final map = (json as Map).cast<String, Object?>();
return BillingPortalSessionFlowSubscriptionUpdateConfirm(
discounts: map['discounts'] == null
? null
: (map['discounts'] as List<Object?>)
.map((el) =>
PortalFlowsSubscriptionUpdateConfirmDiscount.fromJson(el))
.toList(),
items: (map['items'] as List<Object?>)
.map((el) => PortalFlowsSubscriptionUpdateConfirmItem.fromJson(el))
.toList(),
subscription: (map['subscription'] as String),
);
}