/* 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 UpdateSmartCollectionRequest */ export interface UpdateSmartCollectionRequest { /** * * @type {string} * @memberof UpdateSmartCollectionRequest */ 'name': string; /** * * @type {string} * @memberof UpdateSmartCollectionRequest */ 'description': string | null; /** * * @type {Array} * @memberof UpdateSmartCollectionRequest */ 'queries': Array; } /** * Check if a given object implements the UpdateSmartCollectionRequest interface. */ export function instanceOfUpdateSmartCollectionRequest(value: object): value is UpdateSmartCollectionRequest { 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; return true; } export function UpdateSmartCollectionRequestFromJSON(json: any): UpdateSmartCollectionRequest { return UpdateSmartCollectionRequestFromJSONTyped(json, false); } export function UpdateSmartCollectionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateSmartCollectionRequest { if (json == null) { return json; } const result = { } as UpdateSmartCollectionRequest; 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); } return result; } export function UpdateSmartCollectionRequestToJSON(json: any): UpdateSmartCollectionRequest { return UpdateSmartCollectionRequestToJSONTyped(json, false); } export function UpdateSmartCollectionRequestToJSONTyped(value?: UpdateSmartCollectionRequest | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'name': value['name'], 'description': value['description'], 'queries': ((value['queries'] as Array).map(CreateSmartCollectionRequestQueriesInnerToJSON)), }; }