/* tslint:disable */
/* eslint-disable */
/**
 * Hexiosec Transfer API
 * API description for Hexiosec Transfer  ## Testing Requests  Endpoints that require authentication will use your session cookie from the main application if an API key is not provided. This is fine for testing GET requests, however POST/DELETE requests will require a CSRF token when using a session cookie. It is not possible to provide a CSRF token from this page, and so an API key must be used.
 *
 * The version of the OpenAPI document: 0.0.1
 * Contact: support@hexiosec.com
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
/**
 * @export
 */
export const InviteUpdateRequestStateEnum = {
    Active: 'active',
    Archived: 'archived',
};
/**
 * Check if a given object implements the InviteUpdateRequest interface.
 */
export function instanceOfInviteUpdateRequest(value) {
    return true;
}
export function InviteUpdateRequestFromJSON(json) {
    return InviteUpdateRequestFromJSONTyped(json, false);
}
export function InviteUpdateRequestFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        subject: json['subject'] == null ? undefined : json['subject'],
        state: json['state'] == null ? undefined : json['state'],
        exp: json['exp'] == null ? undefined : new Date(json['exp']),
        clearExp: json['clear_exp'] == null ? undefined : json['clear_exp'],
        max: json['max'] == null ? undefined : json['max'],
    };
}
export function InviteUpdateRequestToJSON(json) {
    return InviteUpdateRequestToJSONTyped(json, false);
}
export function InviteUpdateRequestToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        subject: value['subject'],
        state: value['state'],
        exp: value['exp'] == null ? undefined : value['exp'].toISOString(),
        clear_exp: value['clearExp'],
        max: value['max'],
    };
}
