"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.instanceOfOrganizationSourceAuthenticationResultSchema = instanceOfOrganizationSourceAuthenticationResultSchema;
exports.OrganizationSourceAuthenticationResultSchemaFromJSON = OrganizationSourceAuthenticationResultSchemaFromJSON;
exports.OrganizationSourceAuthenticationResultSchemaFromJSONTyped = OrganizationSourceAuthenticationResultSchemaFromJSONTyped;
exports.OrganizationSourceAuthenticationResultSchemaToJSON = OrganizationSourceAuthenticationResultSchemaToJSON;
exports.OrganizationSourceAuthenticationResultSchemaToJSONTyped = OrganizationSourceAuthenticationResultSchemaToJSONTyped;
const Status_1 = require("./Status");
const OrganizationSourceAuthenticationSchema_1 = require("./OrganizationSourceAuthenticationSchema");
const ErrorResponse_1 = require("./ErrorResponse");
/**
 * Check if a given object implements the OrganizationSourceAuthenticationResultSchema interface.
 */
function instanceOfOrganizationSourceAuthenticationResultSchema(value) {
    if (!('status' in value) || value['status'] === undefined)
        return false;
    return true;
}
function OrganizationSourceAuthenticationResultSchemaFromJSON(json) {
    return OrganizationSourceAuthenticationResultSchemaFromJSONTyped(json, false);
}
function OrganizationSourceAuthenticationResultSchemaFromJSONTyped(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, OrganizationSourceAuthenticationSchema_1.OrganizationSourceAuthenticationSchemaFromJSON)(json['sourceAuthentication']),
    };
}
function OrganizationSourceAuthenticationResultSchemaToJSON(json) {
    return OrganizationSourceAuthenticationResultSchemaToJSONTyped(json, false);
}
function OrganizationSourceAuthenticationResultSchemaToJSONTyped(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, OrganizationSourceAuthenticationSchema_1.OrganizationSourceAuthenticationSchemaToJSON)(value['sourceAuthentication']),
    };
}
