/* 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 { PhoneLabelFromJSON, PhoneLabelToJSON, } from './PhoneLabel';
/**
 * Check if a given object implements the PhoneSchema interface.
 */
export function instanceOfPhoneSchema(value) {
    if (!('label' in value) || value['label'] === undefined)
        return false;
    if (!('number' in value) || value['number'] === undefined)
        return false;
    return true;
}
export function PhoneSchemaFromJSON(json) {
    return PhoneSchemaFromJSONTyped(json, false);
}
export function PhoneSchemaFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'label': PhoneLabelFromJSON(json['label']),
        'number': json['number'],
        'extension': json['extension'] == null ? undefined : json['extension'],
    };
}
export function PhoneSchemaToJSON(json) {
    return PhoneSchemaToJSONTyped(json, false);
}
export function PhoneSchemaToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'label': PhoneLabelToJSON(value['label']),
        'number': value['number'],
        'extension': value['extension'],
    };
}
