getAllergenById method
Gets the allergen that matches an id.
Implementation
Future<Allergen> getAllergenById(String id) async {
final response = await _context.client.get(
Uri.https(authority, '$path/allergens/$id'),
);
ClientException.checkIsSuccessStatusCode(response);
return Allergen.fromJson(json.decode(response.body));
}