UNPKG

@apideck/node

Version:
68 lines (63 loc) 1.58 kB
/* tslint:disable */ /* eslint-disable */ /** * Apideck * The Apideck OpenAPI Spec: SDK Optimized * * The version of the OpenAPI document: 10.13.0 * Contact: support@apideck.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { exists } from '../runtime' /** * * @export * @interface CollectionTag */ export interface CollectionTag { /** * A unique identifier for an object. * @type {string} * @memberof CollectionTag */ id: string | null /** * The name of the tag. * @type {string} * @memberof CollectionTag */ readonly name?: string | null /** * When custom mappings are configured on the resource, the result is included here. * @type {object} * @memberof CollectionTag */ readonly custom_mappings?: object | null } export function CollectionTagFromJSON(json: any): CollectionTag { return CollectionTagFromJSONTyped(json, false) } export function CollectionTagFromJSONTyped(json: any, ignoreDiscriminator: boolean): CollectionTag { if (json === undefined || json === null) { return json } return { id: json['id'], name: !exists(json, 'name') ? undefined : json['name'], custom_mappings: !exists(json, 'custom_mappings') ? undefined : json['custom_mappings'] } } export function CollectionTagToJSON(value?: CollectionTag | null): any { if (value === undefined) { return undefined } if (value === null) { return null } return { id: value.id } }