/* 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'; /** * * @export * @interface CanvasCollaborationSessionResponseSession */ export interface CanvasCollaborationSessionResponseSession { /** * * @type {string} * @memberof CanvasCollaborationSessionResponseSession */ 'token': string; /** * * @type {Date} * @memberof CanvasCollaborationSessionResponseSession */ 'expiresAt': Date; /** * * @type {string} * @memberof CanvasCollaborationSessionResponseSession */ 'wsUri': string; } /** * Check if a given object implements the CanvasCollaborationSessionResponseSession interface. */ export function instanceOfCanvasCollaborationSessionResponseSession(value: object): value is CanvasCollaborationSessionResponseSession { if (!('token' in value) || value['token'] === undefined) return false; if (!('expiresAt' in value) || value['expiresAt'] === undefined) return false; if (!('wsUri' in value) || value['wsUri'] === undefined) return false; return true; } export function CanvasCollaborationSessionResponseSessionFromJSON(json: any): CanvasCollaborationSessionResponseSession { return CanvasCollaborationSessionResponseSessionFromJSONTyped(json, false); } export function CanvasCollaborationSessionResponseSessionFromJSONTyped(json: any, ignoreDiscriminator: boolean): CanvasCollaborationSessionResponseSession { if (json == null) { return json; } const result = { } as CanvasCollaborationSessionResponseSession; if (json['token'] !== undefined) { result['token'] = json['token']; } if (json['expiresAt'] !== undefined) { result['expiresAt'] = new Date(json['expiresAt']); } if (json['wsUri'] !== undefined) { result['wsUri'] = json['wsUri']; } return result; } export function CanvasCollaborationSessionResponseSessionToJSON(json: any): CanvasCollaborationSessionResponseSession { return CanvasCollaborationSessionResponseSessionToJSONTyped(json, false); } export function CanvasCollaborationSessionResponseSessionToJSONTyped(value?: CanvasCollaborationSessionResponseSession | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'token': value['token'], 'expiresAt': value['expiresAt'].toISOString(), 'wsUri': value['wsUri'], }; }