BillingPortalSessionFlow.fromJson constructor
BillingPortalSessionFlow.fromJson(
- Object? json
Implementation
factory BillingPortalSessionFlow.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return BillingPortalSessionFlow(
afterCompletion:
PortalFlowsFlowAfterCompletion.fromJson(map['after_completion']),
subscriptionCancel: map['subscription_cancel'] == null
? null
: BillingPortalSessionFlowSubscriptionCancel.fromJson(
map['subscription_cancel']),
subscriptionUpdate: map['subscription_update'] == null
? null
: BillingPortalSessionFlowSubscriptionUpdate.fromJson(
map['subscription_update']),
subscriptionUpdateConfirm: map['subscription_update_confirm'] == null
? null
: BillingPortalSessionFlowSubscriptionUpdateConfirm.fromJson(
map['subscription_update_confirm']),
type: BillingPortalSessionFlowType.fromJson(map['type']),
);
}