getMicrowaveStageById method

Future<MicrowaveStage> getMicrowaveStageById(
  1. String id
)

Gets the microwave stage that matches an id.

Implementation

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

  ClientException.checkIsSuccessStatusCode(response);

  return MicrowaveStage.fromJson(json.decode(response.body));
}