InspectorRequest class final

A protocol request.

{"version": 1, "requestId": "abc", "method": "database.list", "params": {}}

Constructors

InspectorRequest({required String method, String requestId = '', JsonMap params = const {}, int version = protocolVersion})
const
InspectorRequest.fromJson(Object? json)
Parses and validates a request. Throws InspectorException with ErrorCodes.invalidRequest for malformed input.
factory

Properties

hashCode → int
The hash code for this object.
no setterinherited
method → String
final
params → JsonMap
final
reader → JsonReader
no setter
requestId → String
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
version → int
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → JsonMap
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited