/* tslint:disable */ /* eslint-disable */ /** * Fabric API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 1.0.0 * * * 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 SearchRequestAllOfAllOfOneOf */ export interface SearchRequestAllOfAllOfOneOf { /** * Find other resources similar to this resource. * @type {string} * @memberof SearchRequestAllOfAllOfOneOf */ 'resourceId'?: string; /** * Find image resources similar to this image. The image should be provided as a base64-encoded string with a data URL prefix (e.g., "data:image/png;base64,..."). * @type {string} * @memberof SearchRequestAllOfAllOfOneOf */ 'image'?: string; /** * Find resources matching this text. Uses hybrid semantic and keyword search, so you can either provide keywords or a natural language query. * @type {string} * @memberof SearchRequestAllOfAllOfOneOf */ 'text'?: string; } /** * Check if a given object implements the SearchRequestAllOfAllOfOneOf interface. */ export function instanceOfSearchRequestAllOfAllOfOneOf(value: object): value is SearchRequestAllOfAllOfOneOf { return true; } export function SearchRequestAllOfAllOfOneOfFromJSON(json: any): SearchRequestAllOfAllOfOneOf { return SearchRequestAllOfAllOfOneOfFromJSONTyped(json, false); } export function SearchRequestAllOfAllOfOneOfFromJSONTyped(json: any, ignoreDiscriminator: boolean): SearchRequestAllOfAllOfOneOf { if (json == null) { return json; } const result = { } as SearchRequestAllOfAllOfOneOf; if (json['resourceId'] !== undefined) { result['resourceId'] = json['resourceId']; } if (json['image'] !== undefined) { result['image'] = json['image']; } if (json['text'] !== undefined) { result['text'] = json['text']; } return result; } export function SearchRequestAllOfAllOfOneOfToJSON(json: any): SearchRequestAllOfAllOfOneOf { return SearchRequestAllOfAllOfOneOfToJSONTyped(json, false); } export function SearchRequestAllOfAllOfOneOfToJSONTyped(value?: SearchRequestAllOfAllOfOneOf | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'resourceId': value['resourceId'], 'image': value['image'], 'text': value['text'], }; }