/* 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.
 */
import { StatusFromJSON, StatusToJSON, } from './Status';
import { OrganizationSourceAuthenticationSchemaFromJSON, OrganizationSourceAuthenticationSchemaToJSON, } from './OrganizationSourceAuthenticationSchema';
import { ErrorResponseFromJSON, ErrorResponseToJSON, } from './ErrorResponse';
/**
 * Check if a given object implements the OrganizationSourceAuthenticationResultSchema interface.
 */
export function instanceOfOrganizationSourceAuthenticationResultSchema(value) {
    if (!('status' in value) || value['status'] === undefined)
        return false;
    return true;
}
export function OrganizationSourceAuthenticationResultSchemaFromJSON(json) {
    return OrganizationSourceAuthenticationResultSchemaFromJSONTyped(json, false);
}
export function OrganizationSourceAuthenticationResultSchemaFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'status': StatusFromJSON(json['status']),
        'errorResponse': json['errorResponse'] == null ? undefined : ErrorResponseFromJSON(json['errorResponse']),
        'sourceAuthentication': json['sourceAuthentication'] == null ? undefined : OrganizationSourceAuthenticationSchemaFromJSON(json['sourceAuthentication']),
    };
}
export function OrganizationSourceAuthenticationResultSchemaToJSON(json) {
    return OrganizationSourceAuthenticationResultSchemaToJSONTyped(json, false);
}
export function OrganizationSourceAuthenticationResultSchemaToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'status': StatusToJSON(value['status']),
        'errorResponse': ErrorResponseToJSON(value['errorResponse']),
        'sourceAuthentication': OrganizationSourceAuthenticationSchemaToJSON(value['sourceAuthentication']),
    };
}
