RoomMetadata class
Represents the configuration data for a room.
Constructors
- RoomMetadata({required String name, required RoomArchetype archetype})
- Creates a RoomMetadata object.
- RoomMetadata.empty()
- Creates an empty RoomMetadata object.
-
RoomMetadata.fromJson(Map<
String, dynamic> dataMap) -
Creates a RoomMetadata object from the JSON response to a GET request.
factory
Properties
- archetype ↔ RoomArchetype
-
Room archetype.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setteroverride
- name ↔ String
-
Human readable name of a resource.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
copyWith(
{String? name, RoomArchetype? archetype, bool copyOriginalValues = true}) → RoomMetadata - 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.
-
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