readAsJsonOrNull method
Returns the resource data as a JSON object at the given href
, or null.
Implementation
Future<Map<String, dynamic>?> readAsJsonOrNull(String href) =>
getWithHref(href)
.use((it) => it.readAsJson().then((json) => json.getOrNull()));