/* 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 CreateNotepadSnapshotRequest */ export interface CreateNotepadSnapshotRequest { /** * A human-readable label for the snapshot (e.g. "before restructure") * @type {string} * @memberof CreateNotepadSnapshotRequest */ 'label'?: string; } /** * Check if a given object implements the CreateNotepadSnapshotRequest interface. */ export function instanceOfCreateNotepadSnapshotRequest(value: object): value is CreateNotepadSnapshotRequest { return true; } export function CreateNotepadSnapshotRequestFromJSON(json: any): CreateNotepadSnapshotRequest { return CreateNotepadSnapshotRequestFromJSONTyped(json, false); } export function CreateNotepadSnapshotRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateNotepadSnapshotRequest { if (json == null) { return json; } const result = { } as CreateNotepadSnapshotRequest; if (json['label'] !== undefined) { result['label'] = json['label']; } return result; } export function CreateNotepadSnapshotRequestToJSON(json: any): CreateNotepadSnapshotRequest { return CreateNotepadSnapshotRequestToJSONTyped(json, false); } export function CreateNotepadSnapshotRequestToJSONTyped(value?: CreateNotepadSnapshotRequest | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'label': value['label'], }; }