WPResponse class

WordPress Repsonse that returns the data, meta and a statusCode

Constructors

WPResponse({dynamic data, WPMeta? meta, required int statusCode})

Properties

data → dynamic
Responses from server which is either a List<T> or T
final
hashCode int
The hash code for this object.
no setterinherited
meta WPMeta?
Meta contains meta from responses header. This inludes total number of item "total" and the total pages "totalPages"
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
statusCode int
HTTP Status code
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

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