Recordings class

Recordings combines recordings of calls and instances with metadata.

This class acts as the top-level container for recorded usage information. The metadata provides context for the recording, such as version and commentary. The callsForDefinition and instancesForDefinition store the core data, associating each Definition with its corresponding Reference details.

The class uses a normalized JSON format, allowing the reuse of locations and constants across multiple recordings to optimize storage.

Constructors

Recordings.new({required Metadata metadata, required Map<Definition, List<CallReference>> callsForDefinition, required Map<Definition, List<InstanceReference>> instancesForDefinition})
Recordings.fromJson(Map<String, Object?> json)
Decodes a JSON representation into a Recordings object.
factory

Properties

calls Map<Identifier, List<CallReference>>
latefinal
callsForDefinition Map<Definition, List<CallReference>>
The collected CallReferences for each Definition.
final
hashCode int
The hash code for this object.
no setteroverride
instances Map<Identifier, List<InstanceReference>>
latefinal
instancesForDefinition Map<Definition, List<InstanceReference>>
The collected InstanceReferences for each Definition.
final
metadata Metadata
Metadata such as the recording protocol version.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, Object?>
Encodes this object into a JSON representation.
toString() String
A string representation of this object.
inherited

Operators

operator ==(covariant Recordings other) bool
The equality operator.
override