ChargeCapturedEvent.fromJson constructor

ChargeCapturedEvent.fromJson(
  1. Object? json
)

Implementation

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