utils/json_utils library

Functions

decodeJsonObject(String? body) → Map<String, dynamic>?
body as a JSON object, or null for no body, malformed JSON or any other JSON value.
fetchOrNull(Future<String?> fetch()) → Future<String?>
What fetch returns, or null when it throws: an ObservANT camera that cannot be reached answers nothing.