PulseBase<P>.fromRecord constructor
const
PulseBase<P>.fromRecord (
- Record record
Creates a pulse from an existing record.
When to use
- This is used internally for cloning and deserialisation. You never call it directly.
- This constructor is used internally by the framework for:
- Cloning pulses (creating a copy with the same metadata).
- Deserialising pulses from a stored format.
- Framework extension points.
How it works
Directly assigns the provided record to _record. The record is
assumed to be correctly shaped — no validation is performed.
Parameters:
record: The record containing the pulse's metadata.
Returns:
A PulseBase instance with the provided record.
Implementation
const PulseBase.fromRecord(Record record) : _record = record;