/* 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 { UserSourceAuthenticationResultSchema } from './UserSourceAuthenticationResultSchema';
import {
    UserSourceAuthenticationResultSchemaFromJSON,
    UserSourceAuthenticationResultSchemaFromJSONTyped,
    UserSourceAuthenticationResultSchemaToJSON,
    UserSourceAuthenticationResultSchemaToJSONTyped,
} from './UserSourceAuthenticationResultSchema';

/**
 * 
 * @export
 * @interface ListUserSourceAuthenticationResultSchema
 */
export interface ListUserSourceAuthenticationResultSchema {
    /**
     * 
     * @type {Array<UserSourceAuthenticationResultSchema>}
     * @memberof ListUserSourceAuthenticationResultSchema
     */
    sources: Array<UserSourceAuthenticationResultSchema>;
}

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

export function ListUserSourceAuthenticationResultSchemaFromJSON(json: any): ListUserSourceAuthenticationResultSchema {
    return ListUserSourceAuthenticationResultSchemaFromJSONTyped(json, false);
}

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

export function ListUserSourceAuthenticationResultSchemaToJSON(json: any): ListUserSourceAuthenticationResultSchema {
    return ListUserSourceAuthenticationResultSchemaToJSONTyped(json, false);
}

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

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

