/* 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';
/**
 * 
 * @export
 * @interface ContactReferenceSchema
 */
export interface ContactReferenceSchema {
    /**
     * 
     * @type {string}
     * @memberof ContactReferenceSchema
     */
    contactUniqueIdentifier: string;
    /**
     * 
     * @type {string}
     * @memberof ContactReferenceSchema
     */
    contactExternalId: string;
    /**
     * 
     * @type {string}
     * @memberof ContactReferenceSchema
     */
    fullName?: string | null;
}

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

export function ContactReferenceSchemaFromJSON(json: any): ContactReferenceSchema {
    return ContactReferenceSchemaFromJSONTyped(json, false);
}

export function ContactReferenceSchemaFromJSONTyped(json: any, ignoreDiscriminator: boolean): ContactReferenceSchema {
    if (json == null) {
        return json;
    }
    return {
        
        'contactUniqueIdentifier': json['contactUniqueIdentifier'],
        'contactExternalId': json['contactExternalId'],
        'fullName': json['fullName'] == null ? undefined : json['fullName'],
    };
}

export function ContactReferenceSchemaToJSON(json: any): ContactReferenceSchema {
    return ContactReferenceSchemaToJSONTyped(json, false);
}

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

    return {
        
        'contactUniqueIdentifier': value['contactUniqueIdentifier'],
        'contactExternalId': value['contactExternalId'],
        'fullName': value['fullName'],
    };
}

