int getInt(String key, {int defaultValue = 0}) { return this[key] != null ? (int.tryParse(this[key]) ?? defaultValue) : defaultValue; }