int? findInt(String key) { final value = find(key); if (value is int) return value; if (value is String) return int.tryParse(value); return null; }