CouponUpdatedEvent.fromJson constructor

CouponUpdatedEvent.fromJson(
  1. Object? json
)

Implementation

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