getProductMadeWithoutsByMadeWithoutId method

Future<List<ProductMadeWithout>> getProductMadeWithoutsByMadeWithoutId(
  1. String id
)

Gets all the product made without information of the made without that matches an id.

Implementation

Future<List<ProductMadeWithout>> getProductMadeWithoutsByMadeWithoutId(
    String id) async {
  final response = await _context.client.get(
    Uri.https(authority, '$path/madewithouts/$id/productmadewithouts'),
  );

  ClientException.checkIsSuccessStatusCode(response);

  return (json.decode(response.body) as List)
      .map((e) => ProductMadeWithout.fromJson(e))
      .toList();
}