SubscriptionCancellationDetails.fromJson constructor
SubscriptionCancellationDetails.fromJson(
- Object? json
Implementation
factory SubscriptionCancellationDetails.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return SubscriptionCancellationDetails(
comment: map['comment'] == null ? null : (map['comment'] as String),
feedback: map['feedback'] == null
? null
: SubscriptionFeedback.fromJson(map['feedback']),
);
}