NotionResponse class
A representation of the Response from the Notion API.
Constructors
- NotionResponse({ObjectTypes object = ObjectTypes.None, int status = 0, String? code, String? message})
- Main Notion response constructor.
- NotionResponse.fromResponse(Response response)
-
Map a new Notion response instance from a http
response
.factory
Properties
- code ↔ String?
-
The Notion code for the errors.
getter/setter pair
- content → dynamic
-
no setter
- database ↔ Database?
-
The database information if the result is a database.
getter/setter pair
- hasError ↔ bool
-
The marker to know when an error occur.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- isDatabase → bool
-
Returns true if the response is a database.
no setter
- isError → bool
-
Returns true if the response is an error.
no setter
- isList → bool
-
Returns true if the response is a list.
no setter
- isNone → bool
-
Returns true if the response have no object type.
no setter
- isObject → bool
-
Returns true if the response is an object.
no setter
- isOk ↔ bool
-
The marker to know if the response is ok.
getter/setter pair
- isPage → bool
-
Returns true if the response is a page.
no setter
- message ↔ String?
-
The Notion message for the errors.
getter/setter pair
- object ↔ ObjectTypes
-
The object type of the response.
getter/setter pair
- page ↔ Page?
-
The page information if the result is a page.
getter/setter pair
- pagination ↔ Pagination?
-
The pagination if the object is a list.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- status ↔ int
-
The response status.
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited