Properties class
A representation of the properties for any Notion object.
Constructors
-
Properties({Map<
String, Property> map = const {}}) - Main properties constructor.
- Properties.empty()
- Constructor for an empty instance.
-
Properties.fromJson(Map<
String, dynamic> json) -
Map a new properties instance from a
json
map.
Properties
Methods
-
add(
{required String name, required Property property}) → void -
Add a new
property
with a specificname
. -
addAllFromJson(
Map< String, dynamic> json) → void -
Add a group of properties in a
json
map. -
contains(
String name) → bool -
Returns true if the property with the specific
name
is contained. -
getByName(
String name) → Property -
Get the property with the specific
name
. If not found return an empty instance. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
remove(
String name) → Property -
Remove the property with the specific
name
and return the deleted property. If not found return an empty instance. -
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