/* 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 { UserSourceAuthenticationSchemaFromJSON, UserSourceAuthenticationSchemaToJSON, } from './UserSourceAuthenticationSchema';
import { ErrorResponseFromJSON, ErrorResponseToJSON, } from './ErrorResponse';
/**
 * Check if a given object implements the UserSourceAuthenticationResultSchema interface.
 */
export function instanceOfUserSourceAuthenticationResultSchema(value) {
    if (!('status' in value) || value['status'] === undefined)
        return false;
    return true;
}
export function UserSourceAuthenticationResultSchemaFromJSON(json) {
    return UserSourceAuthenticationResultSchemaFromJSONTyped(json, false);
}
export function UserSourceAuthenticationResultSchemaFromJSONTyped(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 : UserSourceAuthenticationSchemaFromJSON(json['sourceAuthentication']),
    };
}
export function UserSourceAuthenticationResultSchemaToJSON(json) {
    return UserSourceAuthenticationResultSchemaToJSONTyped(json, false);
}
export function UserSourceAuthenticationResultSchemaToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'status': StatusToJSON(value['status']),
        'errorResponse': ErrorResponseToJSON(value['errorResponse']),
        'sourceAuthentication': UserSourceAuthenticationSchemaToJSON(value['sourceAuthentication']),
    };
}
