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