CouponCreatedEvent.fromJson constructor
CouponCreatedEvent.fromJson(
- Object? json
Implementation
factory CouponCreatedEvent.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return CouponCreatedEvent(object: Coupon.fromJson(map['object']));
}