SubscriptionUpdateOptionsPauseCollection.fromJson constructor
SubscriptionUpdateOptionsPauseCollection.fromJson(
- Object? json
Implementation
factory SubscriptionUpdateOptionsPauseCollection.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return SubscriptionUpdateOptionsPauseCollection(
behavior: SubscriptionPauseCollectionBehavior.fromJson(map['behavior']),
resumesAt: map['resumes_at'] == null
? null
: DateTime.fromMillisecondsSinceEpoch(
(map['resumes_at'] as int).toInt()),
);
}