/* tslint:disable */ /* eslint-disable */ /** * OpenAPI definition * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: v0 * * * 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, mapValues } from '../runtime'; /** * * @export * @interface ComponentDto */ export interface ComponentDto { /** * * @type {number} * @memberof ComponentDto */ id?: number; /** * * @type {string} * @memberof ComponentDto */ key: string; /** * * @type {string} * @memberof ComponentDto */ name: string; /** * * @type {string} * @memberof ComponentDto */ description?: string; } export function ComponentDtoFromJSON(json: any): ComponentDto { return ComponentDtoFromJSONTyped(json, false); } export function ComponentDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ComponentDto { if ((json === undefined) || (json === null)) { return json; } return { 'id': !exists(json, 'id') ? undefined : json['id'], 'key': json['key'], 'name': json['name'], 'description': !exists(json, 'description') ? undefined : json['description'], }; } export function ComponentDtoToJSON(value?: ComponentDto | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'id': value.id, 'key': value.key, 'name': value.name, 'description': value.description, }; }