responseMapToList<T extends HulkModel> method

List<T> responseMapToList<T extends HulkModel>(
  1. dynamic T,
  2. Response response
)

Implementation

List<T> responseMapToList<T extends HulkModel>(dynamic T, Response response) {
  return response.data.map((element) => T.fromJSON(element));
}