"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ValidatePropertiesRequestBuilderRequestsMetadata = exports.ValidatePropertiesRequestBuilderUriTemplate = exports.serializeValidatePropertiesPostRequestBody = exports.deserializeIntoValidatePropertiesPostRequestBody = exports.createValidatePropertiesPostRequestBodyFromDiscriminatorValue = void 0;
/* tslint:disable */
/* eslint-disable */
// Generated by Microsoft Kiota
const oDataErrors_1 = require("@microsoft/msgraph-beta-sdk/models/oDataErrors/");
/**
 * Creates a new instance of the appropriate class based on discriminator value
 * @param parseNode The parse node to use to read the discriminator value and create the object
 * @returns {ValidatePropertiesPostRequestBody}
 */
function createValidatePropertiesPostRequestBodyFromDiscriminatorValue(parseNode) {
    return deserializeIntoValidatePropertiesPostRequestBody;
}
exports.createValidatePropertiesPostRequestBodyFromDiscriminatorValue = createValidatePropertiesPostRequestBodyFromDiscriminatorValue;
/**
 * The deserialization information for the current model
 * @returns {Record<string, (node: ParseNode) => void>}
 */
function deserializeIntoValidatePropertiesPostRequestBody(validatePropertiesPostRequestBody = {}) {
    return {
        "backingStoreEnabled": n => { validatePropertiesPostRequestBody.backingStoreEnabled = true; },
        "displayName": n => { validatePropertiesPostRequestBody.displayName = n.getStringValue(); },
        "entityType": n => { validatePropertiesPostRequestBody.entityType = n.getStringValue(); },
        "mailNickname": n => { validatePropertiesPostRequestBody.mailNickname = n.getStringValue(); },
        "onBehalfOfUserId": n => { validatePropertiesPostRequestBody.onBehalfOfUserId = n.getGuidValue(); },
    };
}
exports.deserializeIntoValidatePropertiesPostRequestBody = deserializeIntoValidatePropertiesPostRequestBody;
/**
 * Serializes information the current object
 * @param writer Serialization writer to use to serialize this model
 */
function serializeValidatePropertiesPostRequestBody(writer, validatePropertiesPostRequestBody = {}) {
    writer.writeStringValue("displayName", validatePropertiesPostRequestBody.displayName);
    writer.writeStringValue("entityType", validatePropertiesPostRequestBody.entityType);
    writer.writeStringValue("mailNickname", validatePropertiesPostRequestBody.mailNickname);
    writer.writeGuidValue("onBehalfOfUserId", validatePropertiesPostRequestBody.onBehalfOfUserId);
    writer.writeAdditionalData(validatePropertiesPostRequestBody.additionalData);
}
exports.serializeValidatePropertiesPostRequestBody = serializeValidatePropertiesPostRequestBody;
/**
 * Uri template for the request builder.
 */
exports.ValidatePropertiesRequestBuilderUriTemplate = "{+baseurl}/users/validateProperties";
/**
 * Metadata for all the requests in the request builder.
 */
exports.ValidatePropertiesRequestBuilderRequestsMetadata = {
    post: {
        uriTemplate: exports.ValidatePropertiesRequestBuilderUriTemplate,
        responseBodyContentType: "application/json",
        errorMappings: {
            XXX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
        },
        adapterMethodName: "sendNoResponseContent",
        requestBodyContentType: "application/json",
        requestBodySerializer: serializeValidatePropertiesPostRequestBody,
        requestInformationContentSetMethod: "setContentFromParsable",
    },
};
/* tslint:enable */
/* eslint-enable */
