PortalFeatures.fromJson constructor

PortalFeatures.fromJson(
  1. Object? json
)

Implementation

factory PortalFeatures.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return PortalFeatures(
    customerUpdate: PortalCustomerUpdate.fromJson(map['customer_update']),
    invoiceHistory: PortalInvoiceList.fromJson(map['invoice_history']),
    paymentMethodUpdate:
        PortalPaymentMethodUpdate.fromJson(map['payment_method_update']),
    subscriptionCancel:
        PortalSubscriptionCancel.fromJson(map['subscription_cancel']),
    subscriptionPause:
        PortalSubscriptionPause.fromJson(map['subscription_pause']),
    subscriptionUpdate:
        PortalSubscriptionUpdate.fromJson(map['subscription_update']),
  );
}