String? attributeToString(Object? inputValue) { if (inputValue != null) { return inputValue.toString(); } return null; }