getProductMicrowaveStagesByMicrowaveStageId method

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

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

Implementation

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

  ClientException.checkIsSuccessStatusCode(response);

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