find method
Implementation
@override
Future<JsonApiDocument> find(String endpoint, String id,
{bool forceReload = false}) async {
if (forceReload == true) {
return fetchAndCache(endpoint, id);
}
JsonApiDocument? cached = peek(endpoint, id);
if (cached != null) {
return cached;
} else {
return fetchAndCache(endpoint, id);
}
}