whereIsForCreatorDid method Null safety

Future<List<WhereIs>?> whereIsForCreatorDid(
  1. String creator,
  2. String did
)

Implementation

Future<List<WhereIs>?> whereIsForCreatorDid(String creator, String did) async {
  try {
    final response = await httpClient.get<QueryWhereIsByCreatorResponse>('/bucket/whereis/$creator/$did', contentType: "application/json");
    if (!response.isOk || response.body == null) {
      return null;
    }
    return response.body?.whereIs;
  } catch (e) {
    Log.warn("Failed to call query using REST API on $baseUrl/$query");
  }
  return null;
}