/* tslint:disable */
/* eslint-disable */
/**
 * Vectorize API (Beta)
 * API for Vectorize services
 *
 * The version of the OpenAPI document: 0.0.1
 * 
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */

import { mapValues } from '../runtime';
/**
 * 
 * @export
 * @interface StartFileUploadRequest
 */
export interface StartFileUploadRequest {
    /**
     * 
     * @type {string}
     * @memberof StartFileUploadRequest
     */
    name: string;
    /**
     * 
     * @type {string}
     * @memberof StartFileUploadRequest
     */
    contentType: string;
}

/**
 * Check if a given object implements the StartFileUploadRequest interface.
 */
export function instanceOfStartFileUploadRequest(value: object): value is StartFileUploadRequest {
    if (!('name' in value) || value['name'] === undefined) return false;
    if (!('contentType' in value) || value['contentType'] === undefined) return false;
    return true;
}

export function StartFileUploadRequestFromJSON(json: any): StartFileUploadRequest {
    return StartFileUploadRequestFromJSONTyped(json, false);
}

export function StartFileUploadRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): StartFileUploadRequest {
    if (json == null) {
        return json;
    }
    return {
        
        'name': json['name'],
        'contentType': json['contentType'],
    };
}

export function StartFileUploadRequestToJSON(json: any): StartFileUploadRequest {
    return StartFileUploadRequestToJSONTyped(json, false);
}

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

    return {
        
        'name': value['name'],
        'contentType': value['contentType'],
    };
}

