// 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 OrganisationRole */ export interface OrganisationRole { /** * * @type {string} * @memberof OrganisationRole */ readonly url?: string; /** * The username of a user * @type {string} * @memberof OrganisationRole */ user: string; /** * * @type {string} * @memberof OrganisationRole */ role: string; /** * The unique_id of an organisation * @type {string} * @memberof OrganisationRole */ organisation: string; /** * * @type {string} * @memberof OrganisationRole */ readonly organisationName?: string; } export function OrganisationRoleFromJSON(json: any): OrganisationRole { return { 'url': !exists(json, 'url') ? undefined : json['url'], 'user': json['user'], 'role': json['role'], 'organisation': json['organisation'], 'organisationName': !exists(json, 'organisation_name') ? undefined : json['organisation_name'], }; } export function OrganisationRoleToJSON(value?: OrganisationRole): any { if (value === undefined) { return undefined; } return { 'user': value.user, 'role': value.role, 'organisation': value.organisation, }; }