@override bool fromJson(Object? json) { if (json is bool) return json; if (json is int) return json != 0; return false; // fallback }