DirectusResponse<T> class

Wrapper around data that is returned from API.

Most of Directus methods return DirectusResponse.

Implementers

Constructors

DirectusResponse(Response dioResponse, {ItemsConverter? converter})
Constructor that converts Dio Response to DirectusResponse.
DirectusResponse.manually(T data)
Set DirectusResponse manually, without needing Response.

Properties

data ↔ T
Data returned from request
latefinal
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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

Static Methods

fromRequest<U>(Future<Response<Object?>> func(), {ItemsConverter? converter}) Future<DirectusResponse<U>>
Static method that you can pass a closure that should return Dio Response.