DV3DSceneBundle class final

A set of scene documents shipped together: the unit an OTA patch carries.

Constructors

DV3DSceneBundle({required String version, List<DV3DSceneDocument> scenes = const <DV3DSceneDocument>[], List<String> removedScenes = const <String>[], Map<String, DVContentApproval> approvals = const <String, DVContentApproval>{}})
const
DV3DSceneBundle.fromJson(Object? json)
Reads a bundle, decoding every scene before returning, so a bundle with one malformed scene is refused whole and nothing of it is applied.
factory

Properties

approvals → Map<String, DVContentApproval>
Which version of each scene was approved, by whom and when, by id.
final
hashCode → int
The hash code for this object.
no setterinherited
removedScenes → List<String>
Scene ids this bundle removes.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
scenes → List<DV3DSceneDocument>
final
version → String
The release this bundle belongs to.
final

Methods

encode() → String
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, Object?>
toString() → String
A string representation of this object.
inherited
validate() → void
Throws DV3DSceneFormatException for a bundle that cannot be applied unambiguously.

Operators

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

Static Methods

decode(String source) → DV3DSceneBundle