Result class

A Result.

Constructors

Result({Response? response, Map body = const {}, String code = '', String message = '', Map data = const {}, List list = const [], DioExceptionType? error, bool valid = false})

Properties

body Map
final
code String
final
data Map
final
error → DioExceptionType?
final
hashCode int
The hash code for this object.
no setterinherited
list List
final
message String
final
model → dynamic
no setter
models List
no setter
response → Response?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
valid bool
final

Methods

fill(dynamic model) → dynamic
fillList(dynamic models) → dynamic
fillMap<T>(T onMap(Map json), {dynamic map}) → dynamic
fillModel<T>(T onModel(Map json)) → dynamic
fillModels<T>(T onModels(Map json)) → dynamic
merge(Result other) → dynamic
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
validWith(String code) bool

Operators

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