PaymentIntentCanceledEvent.fromJson constructor

PaymentIntentCanceledEvent.fromJson(
  1. Object? json
)

Implementation

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