/* tslint:disable */
/* eslint-disable */
// Generated by Microsoft Kiota
// @ts-ignore
import { createOnenoteOperationFromDiscriminatorValue } 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 {CopyToNotebookPostRequestBody}
 */
// @ts-ignore
export function createCopyToNotebookPostRequestBodyFromDiscriminatorValue(parseNode) {
    return deserializeIntoCopyToNotebookPostRequestBody;
}
/**
 * The deserialization information for the current model
 * @returns {Record<string, (node: ParseNode) => void>}
 */
// @ts-ignore
export function deserializeIntoCopyToNotebookPostRequestBody(copyToNotebookPostRequestBody = {}) {
    return {
        "backingStoreEnabled": n => { copyToNotebookPostRequestBody.backingStoreEnabled = true; },
        "groupId": n => { copyToNotebookPostRequestBody.groupId = n.getStringValue(); },
        "id": n => { copyToNotebookPostRequestBody.id = n.getStringValue(); },
        "renameAs": n => { copyToNotebookPostRequestBody.renameAs = n.getStringValue(); },
        "siteCollectionId": n => { copyToNotebookPostRequestBody.siteCollectionId = n.getStringValue(); },
        "siteId": n => { copyToNotebookPostRequestBody.siteId = n.getStringValue(); },
    };
}
/**
 * Serializes information the current object
 * @param writer Serialization writer to use to serialize this model
 */
// @ts-ignore
export function serializeCopyToNotebookPostRequestBody(writer, copyToNotebookPostRequestBody = {}) {
    if (copyToNotebookPostRequestBody) {
        writer.writeStringValue("groupId", copyToNotebookPostRequestBody.groupId);
        writer.writeStringValue("id", copyToNotebookPostRequestBody.id);
        writer.writeStringValue("renameAs", copyToNotebookPostRequestBody.renameAs);
        writer.writeStringValue("siteCollectionId", copyToNotebookPostRequestBody.siteCollectionId);
        writer.writeStringValue("siteId", copyToNotebookPostRequestBody.siteId);
        writer.writeAdditionalData(copyToNotebookPostRequestBody.additionalData);
    }
}
/**
 * Uri template for the request builder.
 */
export const CopyToNotebookRequestBuilderUriTemplate = "{+baseurl}/users/{user%2Did}/onenote/sections/{onenoteSection%2Did}/copyToNotebook";
/**
 * Metadata for all the requests in the request builder.
 */
export const CopyToNotebookRequestBuilderRequestsMetadata = {
    post: {
        uriTemplate: CopyToNotebookRequestBuilderUriTemplate,
        responseBodyContentType: "application/json",
        errorMappings: {
            XXX: createODataErrorFromDiscriminatorValue,
        },
        adapterMethodName: "send",
        responseBodyFactory: createOnenoteOperationFromDiscriminatorValue,
        requestBodyContentType: "application/json",
        requestBodySerializer: serializeCopyToNotebookPostRequestBody,
        requestInformationContentSetMethod: "setContentFromParsable",
    },
};
/* tslint:enable */
/* eslint-enable */
//# sourceMappingURL=index.js.map