PropertyValue

@Serializable
sealed interface PropertyValue<T>

Base interface for all property values in a Notion database. Property values represent the actual data stored in database properties, with each type of property having its own value type.

The generic type parameter T represents the type of the value:

  • String for text-based properties (email, url, phone)

  • Boolean for checkbox properties

  • Number for number properties

  • DateOrDateTime for date properties

  • RichTextList for rich text and title properties

  • List for multi-select and relation properties

  • User for people and created/edited by properties

See also

Inheritors

Properties

Link copied to clipboard
abstract val id: String

The type of the property value. This matches the type of the corresponding property specification.

Link copied to clipboard
abstract val name: String
Link copied to clipboard
abstract val value: T