readJson method

Object? readJson(
  1. String key
)

Reads and decodes a JSON value by key.

Implementation

Object? readJson(String key) {
  final value = read(key);
  if (value == null || value.isEmpty) return null;
  return jsonDecode(value);
}