GenericRequest<T> class

Constructors

GenericRequest({required T fromMap(Map<String, dynamic> json), required RequestApi method})

Properties

fromMap → T Function(Map<String, dynamic> json)
final
hashCode int
The hash code for this object.
no setterinherited
method RequestApi
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

errorModel(dynamic response, String statusMessage, ExpectType expectType) ServerException
getBytes({bool usingCache = false}) Future<Uint8List>
getList({bool usingCache = false}) Future<List<T>>
getObject({bool usingCache = false}) Future<T>
getResponse({bool usingCache = false}) Future<T>
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