GReviewsReq class abstract
Constructors
- GReviewsReq([void updates(GReviewsReqBuilder b)])
-
factory
Properties
- context → Context?
-
The
Context
to be passed to links.no setter - execRequest → Request
-
no setter
- executeOnListen → bool
-
If set to
true
, this request will be automatically added to the request controller when the stream returned byrequest()
is listened tono setter - fetchPolicy → FetchPolicy?
-
The
FetchPolicy
to be used when executing this operationno setter - hashCode → int
-
The hash code for this object.
no setterinherited
- operation → Operation
-
no setter
- optimisticResponse → GReviewsData?
-
The optimistic result, generally used when running a mutation
no setter
- requestId → String?
-
The unique identifier for this request.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
updateCacheHandlerContext
→ Map<
String, dynamic> ? -
An arbitrary JSON object that can be used to pass data to the
UpdateCacheHandler
no setter - updateCacheHandlerKey → String?
-
The key that maps to a
UpdateCacheHandler
, defined on the clientno setter - updateResult → GReviewsData? Function(GReviewsData?, GReviewsData?)?
-
Optional function to update the result based on the previous result. Useful
for pagination.
no setter
- vars → GReviewsVars
-
no setter
Methods
-
dataToJson(
GReviewsData data) → Map< String, dynamic> -
Serializes data into a JSON object
This is a simple wrapper on the
toJson
method on the data class -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
parseData(
Map< String, dynamic> json) → GReviewsData? - Parses data into a concrete type for the given operation
-
rebuild(
dynamic updates(GReviewsReqBuilder)) → GReviewsReq -
Rebuilds the instance.
inherited
-
toBuilder(
) → GReviewsReqBuilder -
Converts the instance to a builder
B
.inherited -
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
-
transformOperation(
Operation transform(Operation)) → OperationRequest< GReviewsData, GReviewsVars> -
varsToJson(
) → Map< String, dynamic> -
Serializes variables into a JSON object
This is a simple wrapper on the
toJson
method on the variables class
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
-
serializer
→ Serializer<
GReviewsReq> -
no setter
Static Methods
-
fromJson(
Map< String, dynamic> json) → GReviewsReq?