"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.instanceOfEmailSchema = instanceOfEmailSchema;
exports.EmailSchemaFromJSON = EmailSchemaFromJSON;
exports.EmailSchemaFromJSONTyped = EmailSchemaFromJSONTyped;
exports.EmailSchemaToJSON = EmailSchemaToJSON;
exports.EmailSchemaToJSONTyped = EmailSchemaToJSONTyped;
const EmailLabel_1 = require("./EmailLabel");
/**
 * Check if a given object implements the EmailSchema interface.
 */
function instanceOfEmailSchema(value) {
    if (!('label' in value) || value['label'] === undefined)
        return false;
    if (!('address' in value) || value['address'] === undefined)
        return false;
    if (!('main' in value) || value['main'] === undefined)
        return false;
    return true;
}
function EmailSchemaFromJSON(json) {
    return EmailSchemaFromJSONTyped(json, false);
}
function EmailSchemaFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'label': (0, EmailLabel_1.EmailLabelFromJSON)(json['label']),
        'address': json['address'],
        'main': json['main'],
    };
}
function EmailSchemaToJSON(json) {
    return EmailSchemaToJSONTyped(json, false);
}
function EmailSchemaToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'label': (0, EmailLabel_1.EmailLabelToJSON)(value['label']),
        'address': value['address'],
        'main': value['main'],
    };
}
