/* 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 InviteStartUploadResponse interface.
 */
export function instanceOfInviteStartUploadResponse(value) {
    if (!('fileId' in value) || value['fileId'] === undefined)
        return false;
    if (!('type' in value) || value['type'] === undefined)
        return false;
    if (!('salt' in value) || value['salt'] === undefined)
        return false;
    if (!('block' in value) || value['block'] === undefined)
        return false;
    if (!('meta' in value) || value['meta'] === undefined)
        return false;
    if (!('content' in value) || value['content'] === undefined)
        return false;
    return true;
}
export function InviteStartUploadResponseFromJSON(json) {
    return InviteStartUploadResponseFromJSONTyped(json, false);
}
export function InviteStartUploadResponseFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        fileId: json['file_id'],
        type: json['type'],
        salt: json['salt'],
        block: json['block'],
        meta: json['meta'],
        content: json['content'],
    };
}
export function InviteStartUploadResponseToJSON(json) {
    return InviteStartUploadResponseToJSONTyped(json, false);
}
export function InviteStartUploadResponseToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        file_id: value['fileId'],
        type: value['type'],
        salt: value['salt'],
        block: value['block'],
        meta: value['meta'],
        content: value['content'],
    };
}
