JsonRpcResponseContext<T> class
JSON RPC Response Context
A JSON RPC Response-Context result.
- Inheritance
-
- Object
- Serializable
- JsonRpcResponseContext
Constructors
- JsonRpcResponseContext.new({required JsonRpcContext context, required T? value})
-
Creates a JSON RPC response-context result.
const
Properties
- context → JsonRpcContext
-
The slot at which the operation was evaluated.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value → T?
-
The response value.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Serialises
this
class into a JSON object.override -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
decode<
S, T> (Map< String, dynamic> response, JsonRpcResponseDecoder<S, T> decoder) → JsonRpcResponseContext<T> - Decodes a response context.
Constants
- contextKey → const String
-
The
context
property key. - valueKey → const String
-
The
value
property key.