readJson static method

Object? readJson(
  1. String key
)

Reads a decoded JSON value, or null.

Implementation

static Object? readJson(String key) {
  final String? raw = backend.read(key);
  if (raw == null) return null;
  try {
    return jsonDecode(raw);
  } on FormatException {
    return null;
  }
}