listFromJson static method

List<CouponParams> listFromJson(
  1. List json
)

Converts a list of JSON objects to a list of CouponParams instances.

@param json The list of JSON objects to convert. @return A list of CouponParams instances.

Implementation

static List<CouponParams> listFromJson(List<dynamic> json) {
  return json.map((value) => CouponParams.fromJson(value)).toList();
}