"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.IsManagedAppUserBlockedRequestBuilderUriTemplate = exports.IsManagedAppUserBlockedRequestBuilderRequestsMetadata = exports.serializeIsManagedAppUserBlockedGetResponse = exports.deserializeIntoIsManagedAppUserBlockedGetResponse = exports.createIsManagedAppUserBlockedGetResponseFromDiscriminatorValue = 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 a isManagedAppUserBlockedGetResponse
 */
function createIsManagedAppUserBlockedGetResponseFromDiscriminatorValue(parseNode) {
    return deserializeIntoIsManagedAppUserBlockedGetResponse;
}
exports.createIsManagedAppUserBlockedGetResponseFromDiscriminatorValue = createIsManagedAppUserBlockedGetResponseFromDiscriminatorValue;
/**
 * The deserialization information for the current model
 * @returns a Record<string, (node: ParseNode) => void>
 */
function deserializeIntoIsManagedAppUserBlockedGetResponse(isManagedAppUserBlockedGetResponse = {}) {
    return {
        "backingStoreEnabled": n => { isManagedAppUserBlockedGetResponse.backingStoreEnabled = true; },
        "value": n => { isManagedAppUserBlockedGetResponse.value = n.getBooleanValue(); },
    };
}
exports.deserializeIntoIsManagedAppUserBlockedGetResponse = deserializeIntoIsManagedAppUserBlockedGetResponse;
/**
 * Serializes information the current object
 * @param writer Serialization writer to use to serialize this model
 */
function serializeIsManagedAppUserBlockedGetResponse(writer, isManagedAppUserBlockedGetResponse = {}) {
    writer.writeBooleanValue("value", isManagedAppUserBlockedGetResponse.value);
    writer.writeAdditionalData(isManagedAppUserBlockedGetResponse.additionalData);
}
exports.serializeIsManagedAppUserBlockedGetResponse = serializeIsManagedAppUserBlockedGetResponse;
/**
 * Metadata for all the requests in the request builder.
 */
exports.IsManagedAppUserBlockedRequestBuilderRequestsMetadata = {
    get: {
        responseBodyContentType: "application/json",
        errorMappings: {
            _4XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
            _5XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
        },
        adapterMethodName: "sendAsync",
        responseBodyFactory: createIsManagedAppUserBlockedGetResponseFromDiscriminatorValue,
    },
};
/**
 * Uri template for the request builder.
 */
exports.IsManagedAppUserBlockedRequestBuilderUriTemplate = "{+baseurl}/users/{user%2Did}/isManagedAppUserBlocked()";
/* tslint:enable */
/* eslint-enable */
