BillingPortalSessionFlowSubscriptionCancel.fromJson constructor
BillingPortalSessionFlowSubscriptionCancel.fromJson(
- Object? json
Implementation
factory BillingPortalSessionFlowSubscriptionCancel.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return BillingPortalSessionFlowSubscriptionCancel(
retention: map['retention'] == null
? null
: BillingPortalSessionFlowSubscriptionCancelRetention.fromJson(
map['retention']),
subscription: (map['subscription'] as String),
);
}