CouponDeletedEvent.fromJson constructor

CouponDeletedEvent.fromJson(
  1. Object? json
)

Implementation

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