/* 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 { mapValues } from '../runtime';
import type { Status } from './Status';
import {
    StatusFromJSON,
    StatusFromJSONTyped,
    StatusToJSON,
    StatusToJSONTyped,
} from './Status';
import type { OrganizationSourceAuthenticationSchema } from './OrganizationSourceAuthenticationSchema';
import {
    OrganizationSourceAuthenticationSchemaFromJSON,
    OrganizationSourceAuthenticationSchemaFromJSONTyped,
    OrganizationSourceAuthenticationSchemaToJSON,
    OrganizationSourceAuthenticationSchemaToJSONTyped,
} from './OrganizationSourceAuthenticationSchema';
import type { ErrorResponse } from './ErrorResponse';
import {
    ErrorResponseFromJSON,
    ErrorResponseFromJSONTyped,
    ErrorResponseToJSON,
    ErrorResponseToJSONTyped,
} from './ErrorResponse';

/**
 * 
 * @export
 * @interface OrganizationSourceAuthenticationResultSchema
 */
export interface OrganizationSourceAuthenticationResultSchema {
    /**
     * 
     * @type {Status}
     * @memberof OrganizationSourceAuthenticationResultSchema
     */
    status: Status;
    /**
     * 
     * @type {ErrorResponse}
     * @memberof OrganizationSourceAuthenticationResultSchema
     */
    errorResponse?: ErrorResponse | null;
    /**
     * 
     * @type {OrganizationSourceAuthenticationSchema}
     * @memberof OrganizationSourceAuthenticationResultSchema
     */
    sourceAuthentication?: OrganizationSourceAuthenticationSchema | null;
}



/**
 * Check if a given object implements the OrganizationSourceAuthenticationResultSchema interface.
 */
export function instanceOfOrganizationSourceAuthenticationResultSchema(value: object): value is OrganizationSourceAuthenticationResultSchema {
    if (!('status' in value) || value['status'] === undefined) return false;
    return true;
}

export function OrganizationSourceAuthenticationResultSchemaFromJSON(json: any): OrganizationSourceAuthenticationResultSchema {
    return OrganizationSourceAuthenticationResultSchemaFromJSONTyped(json, false);
}

export function OrganizationSourceAuthenticationResultSchemaFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrganizationSourceAuthenticationResultSchema {
    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: any): OrganizationSourceAuthenticationResultSchema {
    return OrganizationSourceAuthenticationResultSchemaToJSONTyped(json, false);
}

export function OrganizationSourceAuthenticationResultSchemaToJSONTyped(value?: OrganizationSourceAuthenticationResultSchema | null, ignoreDiscriminator: boolean = false): any {
    if (value == null) {
        return value;
    }

    return {
        
        'status': StatusToJSON(value['status']),
        'errorResponse': ErrorResponseToJSON(value['errorResponse']),
        'sourceAuthentication': OrganizationSourceAuthenticationSchemaToJSON(value['sourceAuthentication']),
    };
}

