/* tslint:disable */
/* eslint-disable */
// Generated by Microsoft Kiota
// @ts-ignore
import { deserializeIntoEntity, serializeEntity } from '../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 {TeamsAdminRoot}
 */
// @ts-ignore
export function createTeamsAdminRootFromDiscriminatorValue(parseNode) {
    return deserializeIntoTeamsAdminRoot;
}
/**
 * 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 {TeamsPolicyAssignment}
 */
// @ts-ignore
export function createTeamsPolicyAssignmentFromDiscriminatorValue(parseNode) {
    return deserializeIntoTeamsPolicyAssignment;
}
/**
 * The deserialization information for the current model
 * @returns {Record<string, (node: ParseNode) => void>}
 */
// @ts-ignore
export function deserializeIntoTeamsAdminRoot(teamsAdminRoot = {}) {
    return Object.assign(Object.assign({}, deserializeIntoEntity(teamsAdminRoot)), { "policy": n => { teamsAdminRoot.policy = n.getObjectValue(createTeamsPolicyAssignmentFromDiscriminatorValue); } });
}
/**
 * The deserialization information for the current model
 * @returns {Record<string, (node: ParseNode) => void>}
 */
// @ts-ignore
export function deserializeIntoTeamsPolicyAssignment(teamsPolicyAssignment = {}) {
    return Object.assign({}, deserializeIntoEntity(teamsPolicyAssignment));
}
/**
 * Serializes information the current object
 * @param writer Serialization writer to use to serialize this model
 */
// @ts-ignore
export function serializeTeamsAdminRoot(writer, teamsAdminRoot = {}) {
    if (teamsAdminRoot) {
        serializeEntity(writer, teamsAdminRoot);
        writer.writeObjectValue("policy", teamsAdminRoot.policy, serializeTeamsPolicyAssignment);
    }
}
/**
 * Serializes information the current object
 * @param writer Serialization writer to use to serialize this model
 */
// @ts-ignore
export function serializeTeamsPolicyAssignment(writer, teamsPolicyAssignment = {}) {
    if (teamsPolicyAssignment) {
        serializeEntity(writer, teamsPolicyAssignment);
    }
}
/* tslint:enable */
/* eslint-enable */
//# sourceMappingURL=index.js.map