PaymentMethodAttachedEvent.fromJson constructor

PaymentMethodAttachedEvent.fromJson(
  1. Object? json
)

Implementation

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