whereIs method Null safety
- String id
Implementation
Future<WhereIs?> whereIs(String id) async {
final response = await get("/bucket/whereis/$id");
if (response.status.hasError) {
return null;
}
return WhereIs.fromJson(response.body);
}
Future<WhereIs?> whereIs(String id) async {
final response = await get("/bucket/whereis/$id");
if (response.status.hasError) {
return null;
}
return WhereIs.fromJson(response.body);
}