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