PreconditionalResponse class

Inheritance

Constructors

PreconditionalResponse()

Properties

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

Methods

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

Operators

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