/* 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 { UpdateResourceRequestLocation } from './UpdateResourceRequestLocation'; import { UpdateResourceRequestLocationFromJSON, UpdateResourceRequestLocationFromJSONTyped, UpdateResourceRequestLocationToJSON, UpdateResourceRequestLocationToJSONTyped, } from './UpdateResourceRequestLocation'; import type { CreateFolderRequestIcon } from './CreateFolderRequestIcon'; import { CreateFolderRequestIconFromJSON, CreateFolderRequestIconFromJSONTyped, CreateFolderRequestIconToJSON, CreateFolderRequestIconToJSONTyped, } from './CreateFolderRequestIcon'; /** * * @export * @interface UpdateResourceRequest */ export interface UpdateResourceRequest { /** * * @type {string} * @memberof UpdateResourceRequest */ 'name'?: string; /** * * @type {string} * @memberof UpdateResourceRequest */ 'description'?: string | null; /** * * @type {CreateFolderRequestIcon} * @memberof UpdateResourceRequest */ 'icon'?: CreateFolderRequestIcon | null; /** * * @type {string} * @memberof UpdateResourceRequest */ 'coverStoragePath'?: string | null; /** * * @type {UpdateResourceRequestLocation} * @memberof UpdateResourceRequest */ 'location'?: UpdateResourceRequestLocation; } /** * Check if a given object implements the UpdateResourceRequest interface. */ export function instanceOfUpdateResourceRequest(value: object): value is UpdateResourceRequest { return true; } export function UpdateResourceRequestFromJSON(json: any): UpdateResourceRequest { return UpdateResourceRequestFromJSONTyped(json, false); } export function UpdateResourceRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateResourceRequest { if (json == null) { return json; } const result = { } as UpdateResourceRequest; 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['icon'] !== undefined) { if (json['icon'] === null) { result['icon'] = null; } else { result['icon'] = CreateFolderRequestIconFromJSON(json['icon']); } } if (json['coverStoragePath'] !== undefined) { if (json['coverStoragePath'] === null) { result['coverStoragePath'] = null; } else { result['coverStoragePath'] = json['coverStoragePath']; } } if (json['location'] !== undefined) { result['location'] = UpdateResourceRequestLocationFromJSON(json['location']); } return result; } export function UpdateResourceRequestToJSON(json: any): UpdateResourceRequest { return UpdateResourceRequestToJSONTyped(json, false); } export function UpdateResourceRequestToJSONTyped(value?: UpdateResourceRequest | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'name': value['name'], 'description': value['description'], 'icon': CreateFolderRequestIconToJSON(value['icon']), 'coverStoragePath': value['coverStoragePath'], 'location': UpdateResourceRequestLocationToJSON(value['location']), }; }