CustomerSessionResourceComponents.fromJson constructor

CustomerSessionResourceComponents.fromJson(
  1. Object? json
)

Implementation

factory CustomerSessionResourceComponents.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return CustomerSessionResourceComponents(
    buyButton: CustomerSessionResourceComponentsResourceBuyButton.fromJson(
        map['buy_button']),
    pricingTable:
        CustomerSessionResourceComponentsResourcePricingTable.fromJson(
            map['pricing_table']),
  );
}