QueryResponse class

Response type for the [Query](#google.home.graph.v1.HomeGraphApiService.Query) call.

This should follow the same format as the Google smart home action.devices.QUERY response. Example: json { "requestId": "ff36a3cc-ec34-11e6-b1a0-64510650abcf", "payload": { "devices": { "123": { "on": true, "online": true }, "456": { "on": true, "online": true, "brightness": 80, "color": { "name": "cerulean", "spectrumRGB": 31655 } } } } }

Constructors

QueryResponse({QueryResponsePayload? payload, String? requestId})
QueryResponse.fromJson(Map json_)

Properties

hashCode int
The hash code for this object.
no setterinherited
payload QueryResponsePayload?
Device states for the devices given in the request.
getter/setter pair
requestId String?
Request ID used for debugging.
getter/setter pair
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
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

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