/* 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 { SourceResultSchemaFromJSON, SourceResultSchemaToJSON, } from './SourceResultSchema';
import { ErrorResponseFromJSON, ErrorResponseToJSON, } from './ErrorResponse';
/**
 * Check if a given object implements the ContactResultSchema interface.
 */
export function instanceOfContactResultSchema(value) {
    if (!('status' in value) || value['status'] === undefined)
        return false;
    return true;
}
export function ContactResultSchemaFromJSON(json) {
    return ContactResultSchemaFromJSONTyped(json, false);
}
export function ContactResultSchemaFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'status': StatusFromJSON(json['status']),
        'errorResponse': json['errorResponse'] == null ? undefined : ErrorResponseFromJSON(json['errorResponse']),
        'results': json['results'] == null ? undefined : (json['results'].map(SourceResultSchemaFromJSON)),
    };
}
export function ContactResultSchemaToJSON(json) {
    return ContactResultSchemaToJSONTyped(json, false);
}
export function ContactResultSchemaToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'status': StatusToJSON(value['status']),
        'errorResponse': ErrorResponseToJSON(value['errorResponse']),
        'results': value['results'] == null ? undefined : (value['results'].map(SourceResultSchemaToJSON)),
    };
}
