/* 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.
 */
/**
 * Check if a given object implements the FileCreateRequest interface.
 */
export function instanceOfFileCreateRequest(value) {
    if (!('flags' in value) || value['flags'] === undefined)
        return false;
    if (!('exp' in value) || value['exp'] === undefined)
        return false;
    if (!('max' in value) || value['max'] === undefined)
        return false;
    return true;
}
export function FileCreateRequestFromJSON(json) {
    return FileCreateRequestFromJSONTyped(json, false);
}
export function FileCreateRequestFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        flags: json['flags'],
        description: json['description'] == null ? undefined : json['description'],
        exp: json['exp'],
        max: json['max'],
        recipients: json['recipients'] == null ? undefined : json['recipients'],
    };
}
export function FileCreateRequestToJSON(json) {
    return FileCreateRequestToJSONTyped(json, false);
}
export function FileCreateRequestToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        flags: value['flags'],
        description: value['description'],
        exp: value['exp'],
        max: value['max'],
        recipients: value['recipients'],
    };
}
