getFreeFromById method

Future<FreeFrom> getFreeFromById(
  1. String id
)

Gets the free from that matches an id.

Implementation

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

  ClientException.checkIsSuccessStatusCode(response);

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