"use strict";
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
Object.defineProperty(exports, "__esModule", { value: true });
exports.AttributeReferencePersistence = void 0;
const internal_1 = require("../../internal");
const cdmObjectRefPersistence_1 = require("./cdmObjectRefPersistence");
class AttributeReferencePersistence extends cdmObjectRefPersistence_1.cdmObjectRefPersistence {
    static fromData(ctx, object) {
        if (!object) {
            return;
        }
        const simpleReference = true;
        const attribute = object;
        return ctx.corpus.MakeRef(internal_1.cdmObjectType.attributeRef, attribute, simpleReference);
    }
}
exports.AttributeReferencePersistence = AttributeReferencePersistence;
//# sourceMappingURL=AttributeReferencePersistence.js.map