import 'package:dio/dio.dart'; class HealthApi { HealthApi(this._dio); final Dio _dio; /// Returns {status, min_client_version}. Hits the unauthenticated /// `/healthz` endpoint at the configured base URL. Future> check() async { final r = await _dio.get>('/healthz'); return (r.data ?? const {}) .map((k, v) => MapEntry(k, v.toString())); } }