Coupon.fromJson constructor

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

Implementation

factory Coupon.fromJson(Map<String, dynamic> json) => Coupon(
      code: json["code"],
      newUsersOnly: json["newUsersOnly"],
    );