UNPKG

@vectorize-io/vectorize-client

Version:
76 lines (65 loc) 1.96 kB
/* 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 StartExtractionResponse */ export interface StartExtractionResponse { /** * * @type {string} * @memberof StartExtractionResponse */ message: string; /** * * @type {string} * @memberof StartExtractionResponse */ extractionId: string; } /** * Check if a given object implements the StartExtractionResponse interface. */ export function instanceOfStartExtractionResponse(value: object): value is StartExtractionResponse { if (!('message' in value) || value['message'] === undefined) return false; if (!('extractionId' in value) || value['extractionId'] === undefined) return false; return true; } export function StartExtractionResponseFromJSON(json: any): StartExtractionResponse { return StartExtractionResponseFromJSONTyped(json, false); } export function StartExtractionResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): StartExtractionResponse { if (json == null) { return json; } return { 'message': json['message'], 'extractionId': json['extractionId'], }; } export function StartExtractionResponseToJSON(json: any): StartExtractionResponse { return StartExtractionResponseToJSONTyped(json, false); } export function StartExtractionResponseToJSONTyped(value?: StartExtractionResponse | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'message': value['message'], 'extractionId': value['extractionId'], }; }