constructor(params) {
    super()
    this.inContext = params.inContext ?? null
    this.internal = params.internal ?? false
    this.name = params.name ?? null
    this.opaque = params.opaque ?? false
    this.parameters = params.parameters ?? null
    this.parent = params.parent ?? null
    this.recorder = params.recorder ?? null
  }
@param {SegmentSpecParams} params Spec properties to set.