/* tslint:disable */
/* eslint-disable */
// Generated by Microsoft Kiota
// @ts-ignore
import { createSiteFromDiscriminatorValue, deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, serializeSite } 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 {RemovePostRequestBody}
 */
// @ts-ignore
export function createRemovePostRequestBodyFromDiscriminatorValue(parseNode) {
    return deserializeIntoRemovePostRequestBody;
}
/**
 * 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 {RemovePostResponse}
 */
// @ts-ignore
export function createRemovePostResponseFromDiscriminatorValue(parseNode) {
    return deserializeIntoRemovePostResponse;
}
/**
 * The deserialization information for the current model
 * @returns {Record<string, (node: ParseNode) => void>}
 */
// @ts-ignore
export function deserializeIntoRemovePostRequestBody(removePostRequestBody = {}) {
    return {
        "backingStoreEnabled": n => { removePostRequestBody.backingStoreEnabled = true; },
        "value": n => { removePostRequestBody.value = n.getCollectionOfObjectValues(createSiteFromDiscriminatorValue); },
    };
}
/**
 * The deserialization information for the current model
 * @returns {Record<string, (node: ParseNode) => void>}
 */
// @ts-ignore
export function deserializeIntoRemovePostResponse(removePostResponse = {}) {
    return Object.assign(Object.assign({}, deserializeIntoBaseCollectionPaginationCountResponse(removePostResponse)), { "value": n => { removePostResponse.value = n.getCollectionOfObjectValues(createSiteFromDiscriminatorValue); } });
}
/**
 * Serializes information the current object
 * @param writer Serialization writer to use to serialize this model
 */
// @ts-ignore
export function serializeRemovePostRequestBody(writer, removePostRequestBody = {}) {
    if (removePostRequestBody) {
        writer.writeCollectionOfObjectValues("value", removePostRequestBody.value, serializeSite);
        writer.writeAdditionalData(removePostRequestBody.additionalData);
    }
}
/**
 * Serializes information the current object
 * @param writer Serialization writer to use to serialize this model
 */
// @ts-ignore
export function serializeRemovePostResponse(writer, removePostResponse = {}) {
    if (removePostResponse) {
        serializeBaseCollectionPaginationCountResponse(writer, removePostResponse);
        writer.writeCollectionOfObjectValues("value", removePostResponse.value, serializeSite);
    }
}
/**
 * Uri template for the request builder.
 */
export const RemoveRequestBuilderUriTemplate = "{+baseurl}/users/{user%2Did}/followedSites/remove";
/**
 * Metadata for all the requests in the request builder.
 */
export const RemoveRequestBuilderRequestsMetadata = {
    post: {
        uriTemplate: RemoveRequestBuilderUriTemplate,
        responseBodyContentType: "application/json",
        errorMappings: {
            XXX: createODataErrorFromDiscriminatorValue,
        },
        adapterMethodName: "send",
        responseBodyFactory: createRemovePostResponseFromDiscriminatorValue,
        requestBodyContentType: "application/json",
        requestBodySerializer: serializeRemovePostRequestBody,
        requestInformationContentSetMethod: "setContentFromParsable",
    },
};
/* tslint:enable */
/* eslint-enable */
//# sourceMappingURL=index.js.map