Response class

Implementers

Constructors

Response()
Contructor
Response.fromJson(String data)
Factory from JSON
factory

Properties

action String?
Response 'action to' format
getter/setter pair
data Map<String, dynamic>?
Response data payload
getter/setter pair
errors Map<String, List<String>>?
Response input validation felds errors
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
message String?
Response friendly message
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
success bool?
Response status success
getter/setter pair

Methods

fromResponse(Response response) Response
getData(String key) → dynamic
Get data payload by key
getStatus() int?
Get HTTP status code
inputHasError(String key) bool
Verify input has error
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setStatus(int status) → void
Define HTTP status code response
toJson() String
Serialize object to JSON string
toString() String
A string representation of this object.
inherited

Operators

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