ZigbeeDeviceDiscoveryAction class
The scene's metadata.
Constructors
-
ZigbeeDeviceDiscoveryAction({required String actionType, required List<
String> searchCodes, required List<String> installCodes}) - Creates a ZigbeeDeviceDiscoveryAction object.
- ZigbeeDeviceDiscoveryAction.empty()
- Creates an empty ZigbeeDeviceDiscoveryAction object.
-
ZigbeeDeviceDiscoveryAction.fromJson(Map<
String, dynamic> dataMap) -
Creates a ZigbeeDeviceDiscoveryAction object from the JSON response to a
GET request.
factory
Properties
- actionType ↔ String
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setteroverride
-
installCodes
↔ List<
String> -
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
searchCodes
↔ List<
String> -
Collection of search codes.
getter/setter pair
Methods
-
addSearchCode(
String searchCode) → bool -
Adds a
searchCode
to the searchCodes array. -
copyWith(
{String? actionType, List< String> ? searchCodes, List<String> ? installCodes, bool copyOriginalValues = true}) → ZigbeeDeviceDiscoveryAction - Returns a copy of this object with its field values replaced by the ones provided to this method.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
refreshOriginals(
) → void - Called after a successful PUT request, this method refreshed the "original" data in this object.
-
removeSearchCode(
String searchCode) → bool -
Removes a
searchCode
from the searchCodes array. -
toJson(
{OptimizeFor optimizeFor = OptimizeFor.put}) → Map< String, dynamic> - Converts this object into JSON format.
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override