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