"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.OperationIncludeAttributesPersistence = void 0;
const internal_1 = require("../../../internal");
const OperationBasePersistence_1 = require("./OperationBasePersistence");
/**
 * Operation IncludeAttributes persistence
 */
class OperationIncludeAttributesPersistence {
    static fromData(ctx, object) {
        if (!object) {
            return undefined;
        }
        const includeAttributesOp = OperationBasePersistence_1.OperationBasePersistence.fromData(ctx, internal_1.cdmObjectType.operationIncludeAttributesDef, object);
        includeAttributesOp.includeAttributes = object.includeAttributes;
        return includeAttributesOp;
    }
    static toData(instance, resOpt, options) {
        if (!instance) {
            return undefined;
        }
        const data = OperationBasePersistence_1.OperationBasePersistence.toData(instance, resOpt, options);
        data.includeAttributes = instance.includeAttributes;
        return data;
    }
}
exports.OperationIncludeAttributesPersistence = OperationIncludeAttributesPersistence;
//# sourceMappingURL=OperationIncludeAttributesPersistence.js.map