CheckoutSessionAsyncPaymentFailedEvent.fromJson constructor

CheckoutSessionAsyncPaymentFailedEvent.fromJson(
  1. Object? json
)

Implementation

factory CheckoutSessionAsyncPaymentFailedEvent.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return CheckoutSessionAsyncPaymentFailedEvent(
      object: CheckoutSession.fromJson(map['object']));
}