/* 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 Space */ export interface Space { /** * * @type {string} * @memberof Space */ 'id': string; /** * * @type {string} * @memberof Space */ 'name': string | null; } /** * Check if a given object implements the Space interface. */ export function instanceOfSpace(value: object): value is Space { if (!('id' in value) || value['id'] === undefined) return false; if (!('name' in value) || value['name'] === undefined) return false; return true; } export function SpaceFromJSON(json: any): Space { return SpaceFromJSONTyped(json, false); } export function SpaceFromJSONTyped(json: any, ignoreDiscriminator: boolean): Space { if (json == null) { return json; } const result = { } as Space; if (json['id'] !== undefined) { result['id'] = json['id']; } if (json['name'] !== undefined) { if (json['name'] === null) { result['name'] = null; } else { result['name'] = json['name']; } } return result; } export function SpaceToJSON(json: any): Space { return SpaceToJSONTyped(json, false); } export function SpaceToJSONTyped(value?: Space | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'id': value['id'], 'name': value['name'], }; }