/* 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 { OrganizationSourceAuthenticationResultSchema } from './OrganizationSourceAuthenticationResultSchema';
import {
    OrganizationSourceAuthenticationResultSchemaFromJSON,
    OrganizationSourceAuthenticationResultSchemaFromJSONTyped,
    OrganizationSourceAuthenticationResultSchemaToJSON,
    OrganizationSourceAuthenticationResultSchemaToJSONTyped,
} from './OrganizationSourceAuthenticationResultSchema';

/**
 * 
 * @export
 * @interface ListOrganizationSourceAuthenticationResultSchema
 */
export interface ListOrganizationSourceAuthenticationResultSchema {
    /**
     * 
     * @type {Array<OrganizationSourceAuthenticationResultSchema>}
     * @memberof ListOrganizationSourceAuthenticationResultSchema
     */
    sources: Array<OrganizationSourceAuthenticationResultSchema>;
}

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

export function ListOrganizationSourceAuthenticationResultSchemaFromJSON(json: any): ListOrganizationSourceAuthenticationResultSchema {
    return ListOrganizationSourceAuthenticationResultSchemaFromJSONTyped(json, false);
}

export function ListOrganizationSourceAuthenticationResultSchemaFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListOrganizationSourceAuthenticationResultSchema {
    if (json == null) {
        return json;
    }
    return {
        
        'sources': ((json['sources'] as Array<any>).map(OrganizationSourceAuthenticationResultSchemaFromJSON)),
    };
}

export function ListOrganizationSourceAuthenticationResultSchemaToJSON(json: any): ListOrganizationSourceAuthenticationResultSchema {
    return ListOrganizationSourceAuthenticationResultSchemaToJSONTyped(json, false);
}

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

    return {
        
        'sources': ((value['sources'] as Array<any>).map(OrganizationSourceAuthenticationResultSchemaToJSON)),
    };
}

