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