RequestOptionsDTO class abstract
- Available extensions
- Annotations
-
- @freezed
Constructors
-
RequestOptionsDTO({required String id, required String url, required OfflinePolicyActionDTO? offlinePolicyAction, required SlowNetworkPolicyActionDTO? slowNetworkPolicyAction, required CacheOptionsDTO? cacheOptions, required Map<
String, String?> ? headers, required bool? cancelOnDispose, required RequestBodyDTO? body}) -
constfactory
- RequestOptionsDTO.fromDataModel(RequestOptions model)
-
factory
-
RequestOptionsDTO.fromJson(Map<
String, dynamic> json) -
factory
Properties
- body → RequestBodyDTO?
-
no setterinherited
- cacheOptions → CacheOptionsDTO?
-
no setterinherited
- cancelOnDispose → bool?
-
no setterinherited
-
copyWith
→ $RequestOptionsDTOCopyWith<
RequestOptionsDTO> -
Create a copy of RequestOptionsDTO
with the given fields replaced by the non-null parameter values.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
-
headers
→ Map<
String, String?> ? -
no setterinherited
- id → String
-
no setterinherited
- offlinePolicyAction → OfflinePolicyActionDTO?
-
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- slowNetworkPolicyAction → SlowNetworkPolicyActionDTO?
-
no setterinherited
- url → String
-
no setterinherited
Methods
-
map<
TResult extends Object?> (TResult $default(_RequestOptionsDTO value)) → TResult -
Available on RequestOptionsDTO, provided by the RequestOptionsDTOPatterns extension
Aswitch-like method, using callbacks. -
mapOrNull<
TResult extends Object?> (TResult? $default(_RequestOptionsDTO value)?) → TResult? -
Available on RequestOptionsDTO, provided by the RequestOptionsDTOPatterns extension
A variant ofmapthat fallback to returningnull. -
maybeMap<
TResult extends Object?> (TResult $default(_RequestOptionsDTO value)?, {required TResult orElse()}) → TResult -
Available on RequestOptionsDTO, provided by the RequestOptionsDTOPatterns extension
A variant ofmapthat fallback to returningorElse. -
maybeWhen<
TResult extends Object?> (TResult $default(String id, String url, OfflinePolicyActionDTO? offlinePolicyAction, SlowNetworkPolicyActionDTO? slowNetworkPolicyAction, CacheOptionsDTO? cacheOptions, Map< String, String?> ? headers, bool? cancelOnDispose, RequestBodyDTO? body)?, {required TResult orElse()}) → TResult -
Available on RequestOptionsDTO, provided by the RequestOptionsDTOPatterns extension
A variant ofwhenthat fallback to anorElsecallback. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDataModel(
) → RequestOptions -
toJson(
) → Map< String, dynamic> -
Serializes this RequestOptionsDTO to a JSON map.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
when<
TResult extends Object?> (TResult $default(String id, String url, OfflinePolicyActionDTO? offlinePolicyAction, SlowNetworkPolicyActionDTO? slowNetworkPolicyAction, CacheOptionsDTO? cacheOptions, Map< String, String?> ? headers, bool? cancelOnDispose, RequestBodyDTO? body)) → TResult -
Available on RequestOptionsDTO, provided by the RequestOptionsDTOPatterns extension
Aswitch-like method, using callbacks. -
whenOrNull<
TResult extends Object?> (TResult? $default(String id, String url, OfflinePolicyActionDTO? offlinePolicyAction, SlowNetworkPolicyActionDTO? slowNetworkPolicyAction, CacheOptionsDTO? cacheOptions, Map< String, String?> ? headers, bool? cancelOnDispose, RequestBodyDTO? body)?) → TResult? -
Available on RequestOptionsDTO, provided by the RequestOptionsDTOPatterns extension
A variant ofwhenthat fallback to returningnull
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited