/* 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 CreateNotepadSnapshot201Response */ export interface CreateNotepadSnapshot201Response { /** * * @type {string} * @memberof CreateNotepadSnapshot201Response */ 'id': string; /** * * @type {number} * @memberof CreateNotepadSnapshot201Response */ 'snapshotNumber': number; /** * * @type {string} * @memberof CreateNotepadSnapshot201Response */ 'label': string | null; /** * * @type {string} * @memberof CreateNotepadSnapshot201Response */ 'createdAt': string; } /** * Check if a given object implements the CreateNotepadSnapshot201Response interface. */ export function instanceOfCreateNotepadSnapshot201Response(value: object): value is CreateNotepadSnapshot201Response { if (!('id' in value) || value['id'] === undefined) return false; if (!('snapshotNumber' in value) || value['snapshotNumber'] === undefined) return false; if (!('label' in value) || value['label'] === undefined) return false; if (!('createdAt' in value) || value['createdAt'] === undefined) return false; return true; } export function CreateNotepadSnapshot201ResponseFromJSON(json: any): CreateNotepadSnapshot201Response { return CreateNotepadSnapshot201ResponseFromJSONTyped(json, false); } export function CreateNotepadSnapshot201ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateNotepadSnapshot201Response { if (json == null) { return json; } const result = { } as CreateNotepadSnapshot201Response; if (json['id'] !== undefined) { result['id'] = json['id']; } if (json['snapshotNumber'] !== undefined) { result['snapshotNumber'] = json['snapshotNumber']; } if (json['label'] !== undefined) { if (json['label'] === null) { result['label'] = null; } else { result['label'] = json['label']; } } if (json['createdAt'] !== undefined) { result['createdAt'] = json['createdAt']; } return result; } export function CreateNotepadSnapshot201ResponseToJSON(json: any): CreateNotepadSnapshot201Response { return CreateNotepadSnapshot201ResponseToJSONTyped(json, false); } export function CreateNotepadSnapshot201ResponseToJSONTyped(value?: CreateNotepadSnapshot201Response | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'id': value['id'], 'snapshotNumber': value['snapshotNumber'], 'label': value['label'], 'createdAt': value['createdAt'], }; }