/* tslint:disable */
/* eslint-disable */
/**
 * authentik
 * Making authentication simple.
 *
 * The version of the OpenAPI document: 2026.5.0-rc1
 * Contact: hello@goauthentik.io
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */

/**
 * Serializer for sending invitation emails
 * @export
 * @interface InvitationSendEmailRequest
 */
export interface InvitationSendEmailRequest {
    /**
     *
     * @type {Array<any>}
     * @memberof InvitationSendEmailRequest
     */
    emailAddresses: Array<any>;
    /**
     *
     * @type {Array<any>}
     * @memberof InvitationSendEmailRequest
     */
    ccAddresses?: Array<any>;
    /**
     *
     * @type {Array<any>}
     * @memberof InvitationSendEmailRequest
     */
    bccAddresses?: Array<any>;
    /**
     *
     * @type {string}
     * @memberof InvitationSendEmailRequest
     */
    template?: string;
}

/**
 * Check if a given object implements the InvitationSendEmailRequest interface.
 */
export function instanceOfInvitationSendEmailRequest(
    value: object,
): value is InvitationSendEmailRequest {
    if (!("emailAddresses" in value) || value["emailAddresses"] === undefined) return false;
    return true;
}

export function InvitationSendEmailRequestFromJSON(json: any): InvitationSendEmailRequest {
    return InvitationSendEmailRequestFromJSONTyped(json, false);
}

export function InvitationSendEmailRequestFromJSONTyped(
    json: any,
    ignoreDiscriminator: boolean,
): InvitationSendEmailRequest {
    if (json == null) {
        return json;
    }
    return {
        emailAddresses: json["email_addresses"],
        ccAddresses: json["cc_addresses"] == null ? undefined : json["cc_addresses"],
        bccAddresses: json["bcc_addresses"] == null ? undefined : json["bcc_addresses"],
        template: json["template"] == null ? undefined : json["template"],
    };
}

export function InvitationSendEmailRequestToJSON(json: any): InvitationSendEmailRequest {
    return InvitationSendEmailRequestToJSONTyped(json, false);
}

export function InvitationSendEmailRequestToJSONTyped(
    value?: InvitationSendEmailRequest | null,
    ignoreDiscriminator: boolean = false,
): any {
    if (value == null) {
        return value;
    }

    return {
        email_addresses: value["emailAddresses"],
        cc_addresses: value["ccAddresses"],
        bcc_addresses: value["bccAddresses"],
        template: value["template"],
    };
}
