/* 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 { CreateBookmarkRequestLocation } from './CreateBookmarkRequestLocation'; import { CreateBookmarkRequestLocationFromJSON, CreateBookmarkRequestLocationFromJSONTyped, CreateBookmarkRequestLocationToJSON, CreateBookmarkRequestLocationToJSONTyped, } from './CreateBookmarkRequestLocation'; import type { CreateFolderRequestIcon } from './CreateFolderRequestIcon'; import { CreateFolderRequestIconFromJSON, CreateFolderRequestIconFromJSONTyped, CreateFolderRequestIconToJSON, CreateFolderRequestIconToJSONTyped, } from './CreateFolderRequestIcon'; import type { CreateFolderRequestParentId } from './CreateFolderRequestParentId'; import { CreateFolderRequestParentIdFromJSON, CreateFolderRequestParentIdFromJSONTyped, CreateFolderRequestParentIdToJSON, CreateFolderRequestParentIdToJSONTyped, } from './CreateFolderRequestParentId'; /** * * @export * @interface CreateFolderRequest */ export interface CreateFolderRequest { /** * * @type {string} * @memberof CreateFolderRequest */ 'name'?: string | null; /** * * @type {string} * @memberof CreateFolderRequest */ 'description'?: string | null; /** * * @type {CreateFolderRequestIcon} * @memberof CreateFolderRequest */ 'icon'?: CreateFolderRequestIcon | null; /** * * @type {CreateBookmarkRequestLocation} * @memberof CreateFolderRequest */ 'location'?: CreateBookmarkRequestLocation | null; /** * * @type {CreateFolderRequestParentId} * @memberof CreateFolderRequest */ 'parentId'?: CreateFolderRequestParentId | null; /** * * @type {boolean} * @memberof CreateFolderRequest */ 'isPrivateRoot'?: boolean; } /** * Check if a given object implements the CreateFolderRequest interface. */ export function instanceOfCreateFolderRequest(value: object): value is CreateFolderRequest { return true; } export function CreateFolderRequestFromJSON(json: any): CreateFolderRequest { return CreateFolderRequestFromJSONTyped(json, false); } export function CreateFolderRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateFolderRequest { if (json == null) { return json; } const result = { } as CreateFolderRequest; if (json['name'] !== undefined) { if (json['name'] === null) { result['name'] = null; } else { 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['location'] !== undefined) { if (json['location'] === null) { result['location'] = null; } else { result['location'] = CreateBookmarkRequestLocationFromJSON(json['location']); } } if (json['parentId'] !== undefined) { if (json['parentId'] === null) { result['parentId'] = null; } else { result['parentId'] = CreateFolderRequestParentIdFromJSON(json['parentId']); } } if (json['isPrivateRoot'] !== undefined) { result['isPrivateRoot'] = json['isPrivateRoot']; } return result; } export function CreateFolderRequestToJSON(json: any): CreateFolderRequest { return CreateFolderRequestToJSONTyped(json, false); } export function CreateFolderRequestToJSONTyped(value?: CreateFolderRequest | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'name': value['name'], 'description': value['description'], 'icon': CreateFolderRequestIconToJSON(value['icon']), 'location': CreateBookmarkRequestLocationToJSON(value['location']), 'parentId': CreateFolderRequestParentIdToJSON(value['parentId']), 'isPrivateRoot': value['isPrivateRoot'], }; }