/**
 * 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
 * @param AgentSignIn The instance to deserialize into.
 * @returns {Record<string, (node: ParseNode) => void>}
 */
// @ts-ignore
export function deserializeIntoAgentSignIn(agentSignIn = {}) {
    return {
        "agentSubjectParentId": n => { agentSignIn.agentSubjectParentId = n.getStringValue(); },
        "agentSubjectType": n => { agentSignIn.agentSubjectType = n.getEnumValue(AgentTypeObject); },
        "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 AgentSignIn The instance to serialize from.
 * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
 * @param writer Serialization writer to use to serialize this model
 */
// @ts-ignore
export function serializeAgentSignIn(writer, agentSignIn = {}, isSerializingDerivedType = false) {
    if (!agentSignIn || isSerializingDerivedType) {
        return;
    }
    writer.writeStringValue("agentSubjectParentId", agentSignIn.agentSubjectParentId);
    writer.writeEnumValue("agentSubjectType", agentSignIn.agentSubjectType);
    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",
    AgenticApp: "agenticApp",
    AgenticAppInstance: "agenticAppInstance",
    AgentIdentityBlueprintPrincipal: "agentIdentityBlueprintPrincipal",
    AgentIDuser: "agentIDuser",
    UnknownFutureValue: "unknownFutureValue",
};
/* tslint:enable */
/* eslint-enable */
//# sourceMappingURL=index.js.map