CouponCreatedEvent.fromJson constructor

CouponCreatedEvent.fromJson(
  1. Object? json
)

Implementation

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