int? parseIntValue(String name) { final str = values[name]; if (str == null) return null; return int.tryParse(str); }