getProductMicrowaveStagesByProductId method

Future<List<ProductMicrowaveStage>> getProductMicrowaveStagesByProductId(
  1. String id
)

Gets all the product microwave stage information of the product that matches an id.

Implementation

Future<List<ProductMicrowaveStage>> getProductMicrowaveStagesByProductId(
    String id) async {
  final response = await _context.client.get(
    Uri.https(authority, '$path/products/$id/productmicrowavestages'),
  );

  ClientException.checkIsSuccessStatusCode(response);

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