statusByModeByPathModesQueryDetailQuerySeverityLevel method
Gets the line status of for all lines for the given modes
Implementation
Future<List<Line>> statusByModeByPathModesQueryDetailQuerySeverityLevel(
List<String> modes, [
bool? detail,
String? severityLevel,
]) async {
final response = await _context.client.get(
Uri.https(
authority,
'/line/mode/${modes.join(',')}/status',
{
if (detail != null) 'detail': detail.toString(),
if (severityLevel != null) 'severityLevel': severityLevel,
},
),
);
ClientException.checkIsSuccessStatusCode(response);
return Line.listFromJson(json.decode(response.body));
}