CommandResponse class
Response to Command.
Constructors
-
CommandResponse({required int? id, List? result, Map<
String, dynamic> ? error}) -
CommandResponse.fromJson(Map<
String, dynamic> parsed) - Creates CommandResponse from parsed JSON.
Properties
-
error
→ Map<
String, dynamic> ? -
If command fails, error will be returned.
final
- hasError → bool
-
Indicates whether command was successfully executed or not.
no setter
- hashCode → int
-
The hash code for this object.
no setteroverride
- id → int?
-
Same as sent id of the sent command.
final
- raw → String
-
Returns raw response (as string).
no setter
- result → List?
-
If command is successfully executed, result will be returned.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override