/**
 * TtdMergeBranch — branch strand identity for merge inspection.
 *
 * @module domain/services/merge/TtdMergeBranch
 */
import { requireNonEmptyText, requireStringRecord } from "./TtdMergeValidation.js";
export default class TtdMergeBranch {
    branchId;
    strandId;
    fields;
    constructor(fields) {
        this.branchId = requireNonEmptyText(fields.branchId, 'branchId');
        this.strandId = requireNonEmptyText(fields.strandId, 'strandId');
        this.fields = requireStringRecord(fields.fields, 'branch.fields');
        Object.freeze(this);
    }
}
