Command class abstract

Constructors

Command([dynamic updates(CommandBuilder b)])
factory
Command.fromJson(Map json)
factory

Properties

address String
Path to a light resource, a group resource or any other bridge resource (including "/api/
no setter
body → BuiltMap<String, String>
JSON string to be sent to the relevant resource.
no setter
hashCode int
The hash code for this object.
no setterinherited
method String
The HTTP method used to send the body to the given address. Either "POST", "PUT", "DELETE" for local addresses.
no setter
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
rebuild(dynamic updates(CommandBuilder)) Command
Rebuilds the instance.
inherited
toBridgeObject({String? action}) Map
toBuilder() CommandBuilder
Converts the instance to a builder B.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

serializer → Serializer<Command>
no setter