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