/* 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 { EmailLabelFromJSON, EmailLabelToJSON, } from './EmailLabel';
/**
 * Check if a given object implements the EmailSchema interface.
 */
export 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;
}
export function EmailSchemaFromJSON(json) {
    return EmailSchemaFromJSONTyped(json, false);
}
export function EmailSchemaFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'label': EmailLabelFromJSON(json['label']),
        'address': json['address'],
        'main': json['main'],
    };
}
export function EmailSchemaToJSON(json) {
    return EmailSchemaToJSONTyped(json, false);
}
export function EmailSchemaToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'label': EmailLabelToJSON(value['label']),
        'address': value['address'],
        'main': value['main'],
    };
}
