AudioSession class final

Model AudioSession (schemas/api/1.0/audio.schema.json#/$defs/session).

Annotations
  • @immutable

Constructors

AudioSession({required String id, required String venueId, required String presetId, required AudioSessionStatus status, List<String>? engines, double? position, double? duration, int? itemIndex, AudioTargets? targets, Problem? problem, required String startedAt, String? endedAt, Map<String, Object?> extra = const {}})
Creates a AudioSession.
const
AudioSession.fromJson(Map<String, Object?> json, [String path = ''])
Decodes json; throws FormatException (with the JSON path) on a missing required member or a type mismatch. Unknown members and explicit nulls go to extra.
factory

Properties

duration → double?
Duration in seconds.
final
endedAt → String?
RFC 3339 UTC with milliseconds, e.g. 2026-10-19T12:00:00.000Z.
final
engines → List<String>?
engines member.
final
extra → Map<String, Object?>
Members this version does not model (incl. x-* extensions and explicit nulls); written back by toJson.
final
hashCode → int
The hash code for this object.
no setteroverride
id → String
Server-owned resource id: UUIDv7, lowercase, sortable by creation time.
final
itemIndex → int?
itemIndex member.
final
position → double?
Media position in seconds from the start.
final
presetId → String
Document-scoped id (.dome displays[].id, assets[].id, playlist / cue ids); unique within its parent.
final
problem → Problem?
Problem details
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
startedAt → String
RFC 3339 UTC with milliseconds, e.g. 2026-10-19T12:00:00.000Z.
final
status → AudioSessionStatus
status member.
final
targets → AudioTargets?
targets member.
final
venueId → String
Document-scoped id (.dome displays[].id, assets[].id, playlist / cue ids); unique within its parent.
final

Methods

copyWith({String? id, String? venueId, String? presetId, AudioSessionStatus? status, List<String>? engines, double? position, double? duration, int? itemIndex, AudioTargets? targets, Problem? problem, String? startedAt, String? endedAt, Map<String, Object?>? extra}) → AudioSession
A copy with the given members replaced (a member cannot be reset to null this way).
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, Object?>
Encodes to JSON (absent members omitted, extra merged back).
toString() → String
A string representation of this object.
override

Operators

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