CustomerSessionComponents.fromJson constructor
CustomerSessionComponents.fromJson(
- Object? json
Implementation
factory CustomerSessionComponents.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return CustomerSessionComponents(
buyButton: map['buy_button'] == null
? null
: PortalSubscriptionPause.fromJson(map['buy_button']),
pricingTable: map['pricing_table'] == null
? null
: PortalSubscriptionPause.fromJson(map['pricing_table']),
);
}