/* 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'; import type { CreateSmartCollectionRequestQueriesInner } from './CreateSmartCollectionRequestQueriesInner'; import { CreateSmartCollectionRequestQueriesInnerFromJSON, CreateSmartCollectionRequestQueriesInnerFromJSONTyped, CreateSmartCollectionRequestQueriesInnerToJSON, CreateSmartCollectionRequestQueriesInnerToJSONTyped, } from './CreateSmartCollectionRequestQueriesInner'; /** * * @export * @interface GetSmartCollection200Response */ export interface GetSmartCollection200Response { /** * * @type {string} * @memberof GetSmartCollection200Response */ 'id': string; /** * * @type {string} * @memberof GetSmartCollection200Response */ 'name': string; /** * * @type {string} * @memberof GetSmartCollection200Response */ 'description': string | null; /** * * @type {Array} * @memberof GetSmartCollection200Response */ 'queries': Array; /** * * @type {{ [key: string]: any | null; }} * @memberof GetSmartCollection200Response */ 'preferences': { [key: string]: any | null; }; } /** * Check if a given object implements the GetSmartCollection200Response interface. */ export function instanceOfGetSmartCollection200Response(value: object): value is GetSmartCollection200Response { if (!('id' in value) || value['id'] === undefined) return false; if (!('name' in value) || value['name'] === undefined) return false; if (!('description' in value) || value['description'] === undefined) return false; if (!('queries' in value) || value['queries'] === undefined) return false; if (!('preferences' in value) || value['preferences'] === undefined) return false; return true; } export function GetSmartCollection200ResponseFromJSON(json: any): GetSmartCollection200Response { return GetSmartCollection200ResponseFromJSONTyped(json, false); } export function GetSmartCollection200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetSmartCollection200Response { if (json == null) { return json; } const result = { } as GetSmartCollection200Response; if (json['id'] !== undefined) { result['id'] = json['id']; } if (json['name'] !== undefined) { result['name'] = json['name']; } if (json['description'] !== undefined) { if (json['description'] === null) { result['description'] = null; } else { result['description'] = json['description']; } } if (json['queries'] !== undefined) { result['queries'] = (json['queries'] as Array).map(CreateSmartCollectionRequestQueriesInnerFromJSON); } if (json['preferences'] !== undefined) { result['preferences'] = json['preferences']; } return result; } export function GetSmartCollection200ResponseToJSON(json: any): GetSmartCollection200Response { return GetSmartCollection200ResponseToJSONTyped(json, false); } export function GetSmartCollection200ResponseToJSONTyped(value?: GetSmartCollection200Response | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'id': value['id'], 'name': value['name'], 'description': value['description'], 'queries': ((value['queries'] as Array).map(CreateSmartCollectionRequestQueriesInnerToJSON)), 'preferences': value['preferences'], }; }