Property class
A representation of a single property for any Notion object.
- Implementers
Constructors
- Property({String? id})
- Main property constructor.
- Property.empty()
- Constructor for empty property.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- id ↔ String?
-
The property id.
getter/setter pair
- isMultiSelect → bool
-
Returns true if property is MultiSelect type.
no setter
- isNone → bool
-
Returns true if property don't have a known type.
no setter
- isRichText → bool
-
Returns true if property is RichText type.
no setter
- isTitle → bool
-
Returns true if property is Title type.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- strType → String
-
The string value for this property type.
no setter
- type → PropertiesTypes
-
The property type.
final
- value → dynamic
-
The base getter for the content of any property.
no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Convert this to a valid json representation for the Notion API.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
contentIsList(
Map< String, dynamic> json, PropertiesTypes type) → bool - Check if the specific json have a content list.
-
isEmpty(
Map< String, dynamic> json, PropertiesTypes type) → bool - Returns true if the properties are empty.
-
propertiesFromJson(
Map< String, dynamic> json) → Map<String, Property> -
Map a list of properties from a
json
map. -
propertyFromJson(
Map< String, dynamic> json) → Property - Create a new Property instance from json.