CheckoutSessionAfterExpiration.fromJson constructor

CheckoutSessionAfterExpiration.fromJson(
  1. Object? json
)

Implementation

factory CheckoutSessionAfterExpiration.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return CheckoutSessionAfterExpiration(
      recovery: map['recovery'] == null
          ? null
          : CheckoutSessionAfterExpirationRecovery.fromJson(map['recovery']));
}