"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.instanceOfContactReferenceSchema = instanceOfContactReferenceSchema;
exports.ContactReferenceSchemaFromJSON = ContactReferenceSchemaFromJSON;
exports.ContactReferenceSchemaFromJSONTyped = ContactReferenceSchemaFromJSONTyped;
exports.ContactReferenceSchemaToJSON = ContactReferenceSchemaToJSON;
exports.ContactReferenceSchemaToJSONTyped = ContactReferenceSchemaToJSONTyped;
/**
 * Check if a given object implements the ContactReferenceSchema interface.
 */
function instanceOfContactReferenceSchema(value) {
    if (!('contactUniqueIdentifier' in value) || value['contactUniqueIdentifier'] === undefined)
        return false;
    if (!('contactExternalId' in value) || value['contactExternalId'] === undefined)
        return false;
    return true;
}
function ContactReferenceSchemaFromJSON(json) {
    return ContactReferenceSchemaFromJSONTyped(json, false);
}
function ContactReferenceSchemaFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'contactUniqueIdentifier': json['contactUniqueIdentifier'],
        'contactExternalId': json['contactExternalId'],
        'fullName': json['fullName'] == null ? undefined : json['fullName'],
    };
}
function ContactReferenceSchemaToJSON(json) {
    return ContactReferenceSchemaToJSONTyped(json, false);
}
function ContactReferenceSchemaToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'contactUniqueIdentifier': value['contactUniqueIdentifier'],
        'contactExternalId': value['contactExternalId'],
        'fullName': value['fullName'],
    };
}
