PaymentPagesCheckoutSessionAfterExpirationRecovery.fromJson constructor
PaymentPagesCheckoutSessionAfterExpirationRecovery.fromJson(
- Object? json
Implementation
factory PaymentPagesCheckoutSessionAfterExpirationRecovery.fromJson(
Object? json) {
final map = (json as Map).cast<String, Object?>();
return PaymentPagesCheckoutSessionAfterExpirationRecovery(
allowPromotionCodes: (map['allow_promotion_codes'] as bool),
enabled: (map['enabled'] as bool),
expiresAt: map['expires_at'] == null
? null
: DateTime.fromMillisecondsSinceEpoch(
(map['expires_at'] as int).toInt()),
url: map['url'] == null ? null : (map['url'] as String),
);
}