PortalSubscriptionUpdateProduct.fromJson constructor
PortalSubscriptionUpdateProduct.fromJson(
- Object? json
Implementation
factory PortalSubscriptionUpdateProduct.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return PortalSubscriptionUpdateProduct(
prices:
(map['prices'] as List<Object?>).map((el) => (el as String)).toList(),
product: (map['product'] as String),
);
}