PortalSubscriptionCancellationReason.fromJson constructor
PortalSubscriptionCancellationReason.fromJson(
- Object? json
Implementation
factory PortalSubscriptionCancellationReason.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return PortalSubscriptionCancellationReason(
enabled: (map['enabled'] as bool),
options: (map['options'] as List<Object?>)
.map((el) =>
PortalSubscriptionCancellationReasonOptionsItem.fromJson(el))
.toList(),
);
}