static bool? $bool(dynamic json, String key) { final value = _getJsonValue(json, key); if (value == null) return null; return bool.tryParse(value.toString()); }