SmartSceneMetadata class

The smart scene's metadata.

Constructors

SmartSceneMetadata({required String name, required Relative image})
Creates a SmartSceneMetadata object.
SmartSceneMetadata.empty()
Creates an empty SmartSceneMetadata object.
SmartSceneMetadata.fromJson(Map<String, dynamic> dataMap)
Creates a SmartSceneMetadata object from the JSON response to a GET request.
factory

Properties

hashCode int
The hash code for this object.
no setteroverride
image Relative
Reference with unique identifier for the image representing the scene only accepting "rtype": "public_image" on creation.
final
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, Relative? image, bool copyOriginalValues = true}) SmartSceneMetadata
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