Typed accessor for a value in data. Returns null if missing or if the stored value is not a T.
null
T
T? read<T>(String key) { final value = data?[key]; return value is T ? value : null; }