getMadeWithouts method

Future<List<MadeWithout>> getMadeWithouts()

Gets all the made withouts.

Implementation

Future<List<MadeWithout>> getMadeWithouts() async {
  final response = await _context.client.get(
    Uri.https(authority, '$path/madewithouts'),
  );

  ClientException.checkIsSuccessStatusCode(response);

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