"use strict";
/* 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.
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.instanceOfContactResultSchema = instanceOfContactResultSchema;
exports.ContactResultSchemaFromJSON = ContactResultSchemaFromJSON;
exports.ContactResultSchemaFromJSONTyped = ContactResultSchemaFromJSONTyped;
exports.ContactResultSchemaToJSON = ContactResultSchemaToJSON;
exports.ContactResultSchemaToJSONTyped = ContactResultSchemaToJSONTyped;
const Status_1 = require("./Status");
const SourceResultSchema_1 = require("./SourceResultSchema");
const ErrorResponse_1 = require("./ErrorResponse");
/**
 * Check if a given object implements the ContactResultSchema interface.
 */
function instanceOfContactResultSchema(value) {
    if (!('status' in value) || value['status'] === undefined)
        return false;
    return true;
}
function ContactResultSchemaFromJSON(json) {
    return ContactResultSchemaFromJSONTyped(json, false);
}
function ContactResultSchemaFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'status': (0, Status_1.StatusFromJSON)(json['status']),
        'errorResponse': json['errorResponse'] == null ? undefined : (0, ErrorResponse_1.ErrorResponseFromJSON)(json['errorResponse']),
        'results': json['results'] == null ? undefined : (json['results'].map(SourceResultSchema_1.SourceResultSchemaFromJSON)),
    };
}
function ContactResultSchemaToJSON(json) {
    return ContactResultSchemaToJSONTyped(json, false);
}
function ContactResultSchemaToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'status': (0, Status_1.StatusToJSON)(value['status']),
        'errorResponse': (0, ErrorResponse_1.ErrorResponseToJSON)(value['errorResponse']),
        'results': value['results'] == null ? undefined : (value['results'].map(SourceResultSchema_1.SourceResultSchemaToJSON)),
    };
}
