// 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 Contract */ export interface Contract { /** * * @type {string} * @memberof Contract */ readonly url?: string; /** * * @type {number} * @memberof Contract */ readonly id?: number; /** * The unique_id of an organisation * @type {string} * @memberof Contract */ organisation: string; /** * * @type {string} * @memberof Contract */ readonly organisationName?: string; /** * * @type {number} * @memberof Contract */ hoursBought: number; /** * * @type {number} * @memberof Contract */ readonly hoursUsed?: number; /** * * @type {number} * @memberof Contract */ sessionLimit: number; /** * * @type {string} * @memberof Contract */ readonly currentSessions?: string; /** * Maximum amount of ThreediModels per Organisation * @type {number} * @memberof Contract */ threedimodelLimit?: number; } export function ContractFromJSON(json: any): Contract { return { 'url': !exists(json, 'url') ? undefined : json['url'], 'id': !exists(json, 'id') ? undefined : json['id'], 'organisation': json['organisation'], 'organisationName': !exists(json, 'organisation_name') ? undefined : json['organisation_name'], 'hoursBought': json['hours_bought'], 'hoursUsed': !exists(json, 'hours_used') ? undefined : json['hours_used'], 'sessionLimit': json['session_limit'], 'currentSessions': !exists(json, 'current_sessions') ? undefined : json['current_sessions'], 'threedimodelLimit': !exists(json, 'threedimodel_limit') ? undefined : json['threedimodel_limit'], }; } export function ContractToJSON(value?: Contract): any { if (value === undefined) { return undefined; } return { 'organisation': value.organisation, 'hours_bought': value.hoursBought, 'session_limit': value.sessionLimit, 'threedimodel_limit': value.threedimodelLimit, }; }