listFromJson static method

List<BarcodeResponse> listFromJson(
  1. List json
)

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

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

Implementation

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