getByModeByPathModesQueryPage method

Future<StopPointsResponse> getByModeByPathModesQueryPage(
  1. List<String> modes, [
  2. int? page
])

Gets a list of StopPoints filtered by the modes available at that StopPoint.

Implementation

Future<StopPointsResponse> getByModeByPathModesQueryPage(
  List<String> modes, [
  int? page,
]) async {
  final response = await _context.client.get(
    Uri.https(
      authority,
      '/stoppoint/mode/${modes.join(',')}',
      {
        if (page != null) 'page': page.toString(),
      },
    ),
  );

  ClientException.checkIsSuccessStatusCode(response);

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