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