/**
 * 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 {AgentSignIn}
 */
// @ts-ignore
export function createAgentSignInFromDiscriminatorValue(parseNode) {
    return deserializeIntoAgentSignIn;
}
/**
 * The deserialization information for the current model
 * @returns {Record<string, (node: ParseNode) => void>}
 */
// @ts-ignore
export function deserializeIntoAgentSignIn(agentSignIn = {}) {
    return {
        "agentType": n => { agentSignIn.agentType = n.getEnumValue(AgentTypeObject); },
        "backingStoreEnabled": n => { agentSignIn.backingStoreEnabled = true; },
        "@odata.type": n => { agentSignIn.odataType = n.getStringValue(); },
        "parentAppId": n => { agentSignIn.parentAppId = n.getStringValue(); },
    };
}
/**
 * Serializes information the current object
 * @param writer Serialization writer to use to serialize this model
 */
// @ts-ignore
export function serializeAgentSignIn(writer, agentSignIn = {}) {
    if (agentSignIn) {
        writer.writeEnumValue("agentType", agentSignIn.agentType);
        writer.writeStringValue("@odata.type", agentSignIn.odataType);
        writer.writeStringValue("parentAppId", agentSignIn.parentAppId);
        writer.writeAdditionalData(agentSignIn.additionalData);
    }
}
export const AgentTypeObject = {
    NotAgentic: "notAgentic",
    AgenticAppBuilder: "agenticAppBuilder",
    AgenticApp: "agenticApp",
    AgenticAppInstance: "agenticAppInstance",
    UnknownFutureValue: "unknownFutureValue",
};
/* tslint:enable */
/* eslint-enable */
//# sourceMappingURL=index.js.map