getMicrowaveStagesByProductId method
Gets all the microwave stages of the product that matches an id.
Implementation
Future<List<MicrowaveStage>> getMicrowaveStagesByProductId(String id) async {
final response = await _context.client.get(
Uri.https(authority, '$path/products/$id/microwavestages'),
);
ClientException.checkIsSuccessStatusCode(response);
return (json.decode(response.body) as List)
.map((e) => MicrowaveStage.fromJson(e))
.toList();
}