func withBuildStep()

in Sources/XCMetricsBackendLib/Common/Models/Step.swift [87:105]


    func withBuildStep(buildStep: BuildStep, buildIdentifier: String, targetIdentifier: String) -> Step {
        self.id = buildStep.identifier
        self.buildIdentifier = buildIdentifier
        self.targetIdentifier = targetIdentifier
        self.title = buildStep.title
        self.signature = buildStep.signature
        self.type = buildStep.detailStepType.rawValue
        self.architecture = buildStep.architecture
        self.documentURL = buildStep.documentURL
        self.startTimestamp = Date(timeIntervalSince1970: buildStep.startTimestamp)
        self.endTimestamp = Date(timeIntervalSince1970: buildStep.endTimestamp)
        self.startTimestampMicroseconds = buildStep.startTimestamp
        self.endTimestampMicroseconds = buildStep.endTimestamp
        self.duration = buildStep.duration.xcm_roundToDecimal(9)
        self.warningCount = Int32(buildStep.warningCount)
        self.errorCount = Int32(buildStep.errorCount)
        self.fetchedFromCache = buildStep.fetchedFromCache
        return self
    }