@microsoft/msgraph-beta-sdk
Version:
Microsoft Graph Beta JavaScript client library
49 lines • 1.97 kB
JavaScript
/**
* 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 {
"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.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