check method
Checks the health status of the api.
Implementation
Future<HealthCheck> check({
Map<String, dynamic> query = const {},
Map<String, String> headers = const {},
}) {
return client
.send(
"/api/health",
query: query,
headers: headers,
)
.then((data) =>
HealthCheck.fromJson(data as Map<String, dynamic>? ?? {}));
}