// tslint:disable /** * 3Di API * 3Di simulation API (latest stable version: v3) Framework release: 3.0.1 3Di core release: 2.3.0.dev0 deployed on: 10:42AM (UTC) on October 04, 2022 * * The version of the OpenAPI document: v3 * Contact: info@nelen-schuurmans.nl * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { exists, mapValues } from '../runtime'; /** * * @export * @interface Schematisation */ export interface Schematisation { /** * * @type {string} * @memberof Schematisation */ readonly url?: string; /** * * @type {number} * @memberof Schematisation */ readonly id?: number; /** * The unique_id of an organisation * @type {string} * @memberof Schematisation */ owner?: string; /** * * @type {string} * @memberof Schematisation */ name: string; /** * The internal name (only superusers can modify) * @type {string} * @memberof Schematisation */ slug?: string; /** * tags provided as a list of strings * @type {Array} * @memberof Schematisation */ tags?: Array; /** * * @type {object} * @memberof Schematisation */ meta?: object | null; /** * The username of a user * @type {string} * @memberof Schematisation */ createdBy?: string; /** * * @type {string} * @memberof Schematisation */ readonly createdByFirstName?: string; /** * * @type {string} * @memberof Schematisation */ readonly createdByLastName?: string; /** * The creation date and time (only superusers can modify) * @type {Date} * @memberof Schematisation */ created?: Date; /** * * @type {Date} * @memberof Schematisation */ readonly lastUpdated?: Date; /** * Automatically calculated. * @type {number} * @memberof Schematisation */ readonly storageUsage?: number; /** * Maximum amount of ThreediModels per Schematisation * @type {number} * @memberof Schematisation */ threedimodelLimit?: number; } export function SchematisationFromJSON(json: any): Schematisation { return { 'url': !exists(json, 'url') ? undefined : json['url'], 'id': !exists(json, 'id') ? undefined : json['id'], 'owner': !exists(json, 'owner') ? undefined : json['owner'], 'name': json['name'], 'slug': !exists(json, 'slug') ? undefined : json['slug'], 'tags': !exists(json, 'tags') ? undefined : json['tags'], 'meta': !exists(json, 'meta') ? undefined : json['meta'], 'createdBy': !exists(json, 'created_by') ? undefined : json['created_by'], 'createdByFirstName': !exists(json, 'created_by_first_name') ? undefined : json['created_by_first_name'], 'createdByLastName': !exists(json, 'created_by_last_name') ? undefined : json['created_by_last_name'], 'created': !exists(json, 'created') ? undefined : new Date(json['created']), 'lastUpdated': !exists(json, 'last_updated') ? undefined : new Date(json['last_updated']), 'storageUsage': !exists(json, 'storage_usage') ? undefined : json['storage_usage'], 'threedimodelLimit': !exists(json, 'threedimodel_limit') ? undefined : json['threedimodel_limit'], }; } export function SchematisationToJSON(value?: Schematisation): any { if (value === undefined) { return undefined; } return { 'owner': value.owner, 'name': value.name, 'slug': value.slug, 'tags': value.tags, 'meta': value.meta, 'created_by': value.createdBy, 'created': value.created === undefined ? undefined : value.created.toISOString(), 'threedimodel_limit': value.threedimodelLimit, }; }