/* tslint:disable */ /* eslint-disable */ /** * Fabric API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { mapValues } from '../runtime'; import type { CanvasCollaborationSessionResponseSession } from './CanvasCollaborationSessionResponseSession'; import { CanvasCollaborationSessionResponseSessionFromJSON, CanvasCollaborationSessionResponseSessionFromJSONTyped, CanvasCollaborationSessionResponseSessionToJSON, CanvasCollaborationSessionResponseSessionToJSONTyped, } from './CanvasCollaborationSessionResponseSession'; /** * * @export * @interface CanvasCollaborationSessionResponse */ export interface CanvasCollaborationSessionResponse { /** * * @type {string} * @memberof CanvasCollaborationSessionResponse */ 'resourceId': string; /** * * @type {string} * @memberof CanvasCollaborationSessionResponse */ 'roomId': string; /** * * @type {boolean} * @memberof CanvasCollaborationSessionResponse */ 'readonly': boolean; /** * * @type {CanvasCollaborationSessionResponseSession} * @memberof CanvasCollaborationSessionResponse */ 'session': CanvasCollaborationSessionResponseSession; } /** * Check if a given object implements the CanvasCollaborationSessionResponse interface. */ export function instanceOfCanvasCollaborationSessionResponse(value: object): value is CanvasCollaborationSessionResponse { if (!('resourceId' in value) || value['resourceId'] === undefined) return false; if (!('roomId' in value) || value['roomId'] === undefined) return false; if (!('readonly' in value) || value['readonly'] === undefined) return false; if (!('session' in value) || value['session'] === undefined) return false; return true; } export function CanvasCollaborationSessionResponseFromJSON(json: any): CanvasCollaborationSessionResponse { return CanvasCollaborationSessionResponseFromJSONTyped(json, false); } export function CanvasCollaborationSessionResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CanvasCollaborationSessionResponse { if (json == null) { return json; } const result = { } as CanvasCollaborationSessionResponse; if (json['resourceId'] !== undefined) { result['resourceId'] = json['resourceId']; } if (json['roomId'] !== undefined) { result['roomId'] = json['roomId']; } if (json['readonly'] !== undefined) { result['readonly'] = json['readonly']; } if (json['session'] !== undefined) { result['session'] = CanvasCollaborationSessionResponseSessionFromJSON(json['session']); } return result; } export function CanvasCollaborationSessionResponseToJSON(json: any): CanvasCollaborationSessionResponse { return CanvasCollaborationSessionResponseToJSONTyped(json, false); } export function CanvasCollaborationSessionResponseToJSONTyped(value?: CanvasCollaborationSessionResponse | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'resourceId': value['resourceId'], 'roomId': value['roomId'], 'readonly': value['readonly'], 'session': CanvasCollaborationSessionResponseSessionToJSON(value['session']), }; }