UNPKG

@shapediver/sdk.sdtf-v1

Version:
29 lines (21 loc) 847 B
import { ISdtfFileInfo } from '@shapediver/sdk.sdtf-core'; import { SdtfBasePartialComponent } from './SdtfBasePartialComponent'; export class SdtfPartialFileInfo extends SdtfBasePartialComponent implements Partial<ISdtfFileInfo> { copyright?: string; generator?: string; version?: string; additionalProperties: Record<string, unknown> = {}; toJson(): Record<string, unknown> { const json: Record<string, unknown> = { ...this.additionalProperties }; if (this.copyright !== undefined) json.copyright = this.copyright; else delete json.copyright; if (this.generator !== undefined) json.generator = this.generator; else delete json.generator; if (this.version !== undefined) json.version = this.version; else delete json.version; return json; } }