PortalFlowsFlowSubscriptionUpdateConfirm.fromJson constructor
PortalFlowsFlowSubscriptionUpdateConfirm.fromJson(
- Object? json
Implementation
factory PortalFlowsFlowSubscriptionUpdateConfirm.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return PortalFlowsFlowSubscriptionUpdateConfirm(
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),
);
}