/* tslint:disable */
/* eslint-disable */
// Generated by Microsoft Kiota
// @ts-ignore
import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse } from '@microsoft/msgraph-beta-sdk/models/index.js';
// @ts-ignore
import { createODataErrorFromDiscriminatorValue } from '@microsoft/msgraph-beta-sdk/models/oDataErrors/index.js';
/**
 * 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 {GetMemberObjectsPostRequestBody}
 */
// @ts-ignore
export function createGetMemberObjectsPostRequestBodyFromDiscriminatorValue(parseNode) {
    return deserializeIntoGetMemberObjectsPostRequestBody;
}
/**
 * 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 {GetMemberObjectsPostResponse}
 */
// @ts-ignore
export function createGetMemberObjectsPostResponseFromDiscriminatorValue(parseNode) {
    return deserializeIntoGetMemberObjectsPostResponse;
}
/**
 * The deserialization information for the current model
 * @returns {Record<string, (node: ParseNode) => void>}
 */
// @ts-ignore
export function deserializeIntoGetMemberObjectsPostRequestBody(getMemberObjectsPostRequestBody = {}) {
    return {
        "backingStoreEnabled": n => { getMemberObjectsPostRequestBody.backingStoreEnabled = true; },
        "securityEnabledOnly": n => { getMemberObjectsPostRequestBody.securityEnabledOnly = n.getBooleanValue(); },
    };
}
/**
 * The deserialization information for the current model
 * @returns {Record<string, (node: ParseNode) => void>}
 */
// @ts-ignore
export function deserializeIntoGetMemberObjectsPostResponse(getMemberObjectsPostResponse = {}) {
    return Object.assign(Object.assign({}, deserializeIntoBaseCollectionPaginationCountResponse(getMemberObjectsPostResponse)), { "value": n => { getMemberObjectsPostResponse.value = n.getCollectionOfPrimitiveValues(); } });
}
/**
 * Serializes information the current object
 * @param writer Serialization writer to use to serialize this model
 */
// @ts-ignore
export function serializeGetMemberObjectsPostRequestBody(writer, getMemberObjectsPostRequestBody = {}) {
    if (getMemberObjectsPostRequestBody) {
        writer.writeBooleanValue("securityEnabledOnly", getMemberObjectsPostRequestBody.securityEnabledOnly);
        writer.writeAdditionalData(getMemberObjectsPostRequestBody.additionalData);
    }
}
/**
 * Serializes information the current object
 * @param writer Serialization writer to use to serialize this model
 */
// @ts-ignore
export function serializeGetMemberObjectsPostResponse(writer, getMemberObjectsPostResponse = {}) {
    if (getMemberObjectsPostResponse) {
        serializeBaseCollectionPaginationCountResponse(writer, getMemberObjectsPostResponse);
        writer.writeCollectionOfPrimitiveValues("value", getMemberObjectsPostResponse.value);
    }
}
/**
 * Uri template for the request builder.
 */
export const GetMemberObjectsRequestBuilderUriTemplate = "{+baseurl}/users/{user%2Did}/getMemberObjects";
/**
 * Metadata for all the requests in the request builder.
 */
export const GetMemberObjectsRequestBuilderRequestsMetadata = {
    post: {
        uriTemplate: GetMemberObjectsRequestBuilderUriTemplate,
        responseBodyContentType: "application/json",
        errorMappings: {
            XXX: createODataErrorFromDiscriminatorValue,
        },
        adapterMethodName: "send",
        responseBodyFactory: createGetMemberObjectsPostResponseFromDiscriminatorValue,
        requestBodyContentType: "application/json",
        requestBodySerializer: serializeGetMemberObjectsPostRequestBody,
        requestInformationContentSetMethod: "setContentFromParsable",
    },
};
/* tslint:enable */
/* eslint-enable */
//# sourceMappingURL=index.js.map