"use strict";
/* tslint:disable */
/* eslint-disable */
/**
 * UCX Proxy
 * A single use API for the UCX Proxy.
 *
 * The version of the OpenAPI document: 0.0.12
 * Contact: customersuccess@equisoft.com
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.instanceOfUserSourceAuthenticationResultSchema = instanceOfUserSourceAuthenticationResultSchema;
exports.UserSourceAuthenticationResultSchemaFromJSON = UserSourceAuthenticationResultSchemaFromJSON;
exports.UserSourceAuthenticationResultSchemaFromJSONTyped = UserSourceAuthenticationResultSchemaFromJSONTyped;
exports.UserSourceAuthenticationResultSchemaToJSON = UserSourceAuthenticationResultSchemaToJSON;
exports.UserSourceAuthenticationResultSchemaToJSONTyped = UserSourceAuthenticationResultSchemaToJSONTyped;
const Status_1 = require("./Status");
const UserSourceAuthenticationSchema_1 = require("./UserSourceAuthenticationSchema");
const ErrorResponse_1 = require("./ErrorResponse");
/**
 * Check if a given object implements the UserSourceAuthenticationResultSchema interface.
 */
function instanceOfUserSourceAuthenticationResultSchema(value) {
    if (!('status' in value) || value['status'] === undefined)
        return false;
    return true;
}
function UserSourceAuthenticationResultSchemaFromJSON(json) {
    return UserSourceAuthenticationResultSchemaFromJSONTyped(json, false);
}
function UserSourceAuthenticationResultSchemaFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'status': (0, Status_1.StatusFromJSON)(json['status']),
        'errorResponse': json['errorResponse'] == null ? undefined : (0, ErrorResponse_1.ErrorResponseFromJSON)(json['errorResponse']),
        'sourceAuthentication': json['sourceAuthentication'] == null ? undefined : (0, UserSourceAuthenticationSchema_1.UserSourceAuthenticationSchemaFromJSON)(json['sourceAuthentication']),
    };
}
function UserSourceAuthenticationResultSchemaToJSON(json) {
    return UserSourceAuthenticationResultSchemaToJSONTyped(json, false);
}
function UserSourceAuthenticationResultSchemaToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'status': (0, Status_1.StatusToJSON)(value['status']),
        'errorResponse': (0, ErrorResponse_1.ErrorResponseToJSON)(value['errorResponse']),
        'sourceAuthentication': (0, UserSourceAuthenticationSchema_1.UserSourceAuthenticationSchemaToJSON)(value['sourceAuthentication']),
    };
}
