Parent class

A representation of the parent json field for the Notion API.

Constructors

Parent({required ParentType type, required String id})
Main constructor for the page parent.
const
Parent.database({required String id})
Constructor for database parent.
const
Parent.fromJson(Map<String, dynamic> json)
Constructor parent from json.
Parent.none()
Constructor for empty parent.
const
Parent.page({required String id})
Constructor for page parent.
const
Parent.workspace()
Constructor for workspace parent.
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
id → String
The id of the parent.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
strType → String
The string value of this type.
no setter
type → ParentType
The type of parent.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Convert this to a json representation valid for the Notion API.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited