// 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'; import { RevisionRaster, RevisionRasterFromJSON, RevisionRasterToJSON, Sqlite, SqliteFromJSON, SqliteToJSON, } from './'; /** * * @export * @interface SchematisationRevision */ export interface SchematisationRevision { /** * * @type {string} * @memberof SchematisationRevision */ readonly url?: string; /** * * @type {number} * @memberof SchematisationRevision */ readonly id?: number; /** * * @type {Date} * @memberof SchematisationRevision */ readonly created?: Date; /** * * @type {string} * @memberof SchematisationRevision */ readonly schematisation?: string; /** * * @type {number} * @memberof SchematisationRevision */ readonly schematisationId?: number; /** * * @type {number} * @memberof SchematisationRevision */ readonly number?: number; /** * * @type {Sqlite} * @memberof SchematisationRevision */ sqlite?: Sqlite; /** * * @type {Array} * @memberof SchematisationRevision */ readonly rasters?: Array; /** * * @type {Date} * @memberof SchematisationRevision */ readonly archived?: Date; /** * * @type {Date} * @memberof SchematisationRevision */ readonly commitDate?: Date; /** * The username of a user * @type {string} * @memberof SchematisationRevision */ readonly commitUser?: string; /** * * @type {string} * @memberof SchematisationRevision */ readonly commitFirstName?: string; /** * * @type {string} * @memberof SchematisationRevision */ readonly commitLastName?: string; /** * * @type {string} * @memberof SchematisationRevision */ readonly commitMessage?: string; /** * * @type {boolean} * @memberof SchematisationRevision */ readonly isValid?: boolean; /** * * @type {boolean} * @memberof SchematisationRevision */ readonly hasThreedimodel?: boolean; } export function SchematisationRevisionFromJSON(json: any): SchematisationRevision { return { 'url': !exists(json, 'url') ? undefined : json['url'], 'id': !exists(json, 'id') ? undefined : json['id'], 'created': !exists(json, 'created') ? undefined : new Date(json['created']), 'schematisation': !exists(json, 'schematisation') ? undefined : json['schematisation'], 'schematisationId': !exists(json, 'schematisation_id') ? undefined : json['schematisation_id'], 'number': !exists(json, 'number') ? undefined : json['number'], 'sqlite': !exists(json, 'sqlite') ? undefined : SqliteFromJSON(json['sqlite']), 'rasters': !exists(json, 'rasters') ? undefined : (json['rasters'] as Array).map(RevisionRasterFromJSON), 'archived': !exists(json, 'archived') ? undefined : new Date(json['archived']), 'commitDate': !exists(json, 'commit_date') ? undefined : new Date(json['commit_date']), 'commitUser': !exists(json, 'commit_user') ? undefined : json['commit_user'], 'commitFirstName': !exists(json, 'commit_first_name') ? undefined : json['commit_first_name'], 'commitLastName': !exists(json, 'commit_last_name') ? undefined : json['commit_last_name'], 'commitMessage': !exists(json, 'commit_message') ? undefined : json['commit_message'], 'isValid': !exists(json, 'is_valid') ? undefined : json['is_valid'], 'hasThreedimodel': !exists(json, 'has_threedimodel') ? undefined : json['has_threedimodel'], }; } export function SchematisationRevisionToJSON(value?: SchematisationRevision): any { if (value === undefined) { return undefined; } return { 'sqlite': SqliteToJSON(value.sqlite), }; }