CouponInfo.fromJson constructor Null safety

CouponInfo.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory CouponInfo.fromJson(Map<String, dynamic> json) => CouponInfo(
      hasCoupon: json["hasCoupon"],
      couponCode: json["couponCode"],
    );