/* 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 Tag */ export interface Tag { /** * * @type {string} * @memberof Tag */ 'id': string; /** * * @type {string} * @memberof Tag */ 'userId': string; /** * * @type {string} * @memberof Tag */ 'name': string; /** * * @type {string} * @memberof Tag */ 'description': string | null; /** * * @type {string} * @memberof Tag */ 'createdAt'?: string | null; /** * * @type {string} * @memberof Tag */ 'modifiedAt'?: string | null; } /** * Check if a given object implements the Tag interface. */ export function instanceOfTag(value: object): value is Tag { if (!('id' in value) || value['id'] === undefined) return false; if (!('userId' in value) || value['userId'] === undefined) return false; if (!('name' in value) || value['name'] === undefined) return false; if (!('description' in value) || value['description'] === undefined) return false; return true; } export function TagFromJSON(json: any): Tag { return TagFromJSONTyped(json, false); } export function TagFromJSONTyped(json: any, ignoreDiscriminator: boolean): Tag { if (json == null) { return json; } const result = { } as Tag; if (json['id'] !== undefined) { result['id'] = json['id']; } if (json['userId'] !== undefined) { result['userId'] = json['userId']; } if (json['name'] !== undefined) { result['name'] = json['name']; } if (json['description'] !== undefined) { if (json['description'] === null) { result['description'] = null; } else { result['description'] = json['description']; } } if (json['createdAt'] !== undefined) { if (json['createdAt'] === null) { result['createdAt'] = null; } else { result['createdAt'] = json['createdAt']; } } if (json['modifiedAt'] !== undefined) { if (json['modifiedAt'] === null) { result['modifiedAt'] = null; } else { result['modifiedAt'] = json['modifiedAt']; } } return result; } export function TagToJSON(json: any): Tag { return TagToJSONTyped(json, false); } export function TagToJSONTyped(value?: Tag | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'id': value['id'], 'userId': value['userId'], 'name': value['name'], 'description': value['description'], 'createdAt': value['createdAt'], 'modifiedAt': value['modifiedAt'], }; }