/* 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 ResourceLabel */ export interface ResourceLabel { /** * * @type {number} * @memberof ResourceLabel */ 'id': number; /** * * @type {string} * @memberof ResourceLabel */ 'hexColor': string; } /** * Check if a given object implements the ResourceLabel interface. */ export function instanceOfResourceLabel(value: object): value is ResourceLabel { if (!('id' in value) || value['id'] === undefined) return false; if (!('hexColor' in value) || value['hexColor'] === undefined) return false; return true; } export function ResourceLabelFromJSON(json: any): ResourceLabel { return ResourceLabelFromJSONTyped(json, false); } export function ResourceLabelFromJSONTyped(json: any, ignoreDiscriminator: boolean): ResourceLabel { if (json == null) { return json; } const result = { } as ResourceLabel; if (json['id'] !== undefined) { result['id'] = json['id']; } if (json['hexColor'] !== undefined) { result['hexColor'] = json['hexColor']; } return result; } export function ResourceLabelToJSON(json: any): ResourceLabel { return ResourceLabelToJSONTyped(json, false); } export function ResourceLabelToJSONTyped(value?: ResourceLabel | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'id': value['id'], 'hexColor': value['hexColor'], }; }