readAsJsonOrNull method

Future<Map<String, dynamic>?> readAsJsonOrNull(
  1. String href
)

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()));