DeeplinkRpcResponse class
RPC request result to send back through Deeplink.
- Annotations
-
- @JsonSerializable(includeIfNull: false)
Constructors
- DeeplinkRpcResponse.new({required String id, DeeplinkRpcFailure? failure, dynamic result})
-
const
- DeeplinkRpcResponse.decode(String data)
-
factory
- DeeplinkRpcResponse.failure({required String id, required DeeplinkRpcFailure failure})
-
factory
-
DeeplinkRpcResponse.fromJson(Map<
String, dynamic> json) -
factory
- DeeplinkRpcResponse.success({required String id, dynamic result})
-
factory
Properties
- failure → DeeplinkRpcFailure?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
final
- result → dynamic
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
encode(
) → String -
map<
T> ({required T failure(DeeplinkRpcFailure failure), required T success(dynamic result)}) → T -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited