/* 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 FileCreationAttachment */ export interface FileCreationAttachment { /** * * @type {string} * @memberof FileCreationAttachment */ 'path': string; /** * * @type {string} * @memberof FileCreationAttachment */ 'filename': string; } /** * Check if a given object implements the FileCreationAttachment interface. */ export function instanceOfFileCreationAttachment(value: object): value is FileCreationAttachment { if (!('path' in value) || value['path'] === undefined) return false; if (!('filename' in value) || value['filename'] === undefined) return false; return true; } export function FileCreationAttachmentFromJSON(json: any): FileCreationAttachment { return FileCreationAttachmentFromJSONTyped(json, false); } export function FileCreationAttachmentFromJSONTyped(json: any, ignoreDiscriminator: boolean): FileCreationAttachment { if (json == null) { return json; } const result = { } as FileCreationAttachment; if (json['path'] !== undefined) { result['path'] = json['path']; } if (json['filename'] !== undefined) { result['filename'] = json['filename']; } return result; } export function FileCreationAttachmentToJSON(json: any): FileCreationAttachment { return FileCreationAttachmentToJSONTyped(json, false); } export function FileCreationAttachmentToJSONTyped(value?: FileCreationAttachment | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'path': value['path'], 'filename': value['filename'], }; }