Zone class
Represents a zone in the Philips Hue data structure.
Constructors
-
Zone({required ResourceType type, required String id, String idV1 = "", required List<
Relative> children, required List<Relative> services, required RoomMetadata metadata}) - Creates a Zone object.
- Zone.empty()
- Creates an empty Zone object.
-
Zone.fromJson(Map<
String, dynamic> dataMap) -
Creates a Zone object from the JSON response to a GET request.
factory
Properties
-
children
↔ List<
Relative> -
Child devices/services to group by the derived group.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setteroverride
- id → String
-
Unique identifier representing a specific resource instance.
finalinherited
- idV1 → String
-
Clip v1 resource identifier.
final
- metadata ↔ RoomMetadata
-
Configuration object for this room.
getter/setter pair
- originalType → ResourceType
-
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
services
→ List<
Relative> -
References all services aggregating control and state of children in the
group.
final
- type ↔ ResourceType
-
Type of the supported resource.
getter/setter pairinherited
Methods
-
copyWith(
{ResourceType? type, String? id, String? idV1, List< Relative> ? children, List<Relative> ? services, RoomMetadata? metadata, bool copyOriginalValues = true}) → Zone - 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.
override
-
toJson(
{OptimizeFor optimizeFor = OptimizeFor.put}) → Map< String, dynamic> -
Converts this object into JSON format.
override
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override