Future<Info?> getInfo() async { var response = await client.get("$serviceUrl/info"); Info info = Info.fromJson(response.data); return info; }