OfflineOperation<T extends DataModel> class

Offline Operation represents request that has failed due to network connectivity

We store only post/patch/put/delete operations

Offline operation does not support custom operations at this time

Annotations
  • @JsonSerializable(explicitToJson: true, anyMap: true)

Constructors

OfflineOperation({String? key, required OfflineOperationType type, required String modelKey, String? path, Map<String, String>? headers, Map<String, dynamic>? query, Map<String, dynamic>? body})
OfflineOperation.fromJson(Map<String, dynamic> json)
factory

Properties

body Map<String, dynamic>?
final
hashCode int
The hash code for this object.
no setterinherited
headers Map<String, String>?
final
key String
final
modelKey String
final
path String?
final
query Map<String, dynamic>?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type OfflineOperationType
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
retry(RemoteRepository<T> remoteRepository) Future<void>
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

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