/* tslint:disable */
/* eslint-disable */
/**
 * Synapse REST API
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: v1
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
/**
 * Check if a given object implements the Envelope interface.
 */
export function instanceOfEnvelope(value) {
    return true;
}
export function EnvelopeFromJSON(json) {
    return EnvelopeFromJSONTyped(json, false);
}
export function EnvelopeFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'to': json['to'] == null ? undefined : json['to'],
        'recipients': json['recipients'] == null ? undefined : json['recipients'],
        'from': json['from'] == null ? undefined : json['from'],
        'helo_domain': json['helo_domain'] == null ? undefined : json['helo_domain'],
        'remote_ip': json['remote_ip'] == null ? undefined : json['remote_ip'],
        'spf': json['spf'] == null ? undefined : json['spf'],
    };
}
export function EnvelopeToJSON(json) {
    return EnvelopeToJSONTyped(json, false);
}
export function EnvelopeToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'to': value['to'],
        'recipients': value['recipients'],
        'from': value['from'],
        'helo_domain': value['helo_domain'],
        'remote_ip': value['remote_ip'],
        'spf': value['spf'],
    };
}
//# sourceMappingURL=Envelope.js.map