/* 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 LicenseDto */ export interface LicenseDto { /** * * @type {number} * @memberof LicenseDto */ id?: number; /** * * @type {string} * @memberof LicenseDto */ key?: string; /** * * @type {string} * @memberof LicenseDto */ licenseText?: string; /** * (RFC 3339) * @type {string} * @memberof LicenseDto */ lastModified?: string; /** * * @type {{ [key: string]: object; }} * @memberof LicenseDto */ attributes?: { [key: string]: object; }; } export function LicenseDtoFromJSON(json: any): LicenseDto { return LicenseDtoFromJSONTyped(json, false); } export function LicenseDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): LicenseDto { if ((json === undefined) || (json === null)) { return json; } return { 'id': !exists(json, 'id') ? undefined : json['id'], 'key': !exists(json, 'key') ? undefined : json['key'], 'licenseText': !exists(json, 'licenseText') ? undefined : json['licenseText'], 'lastModified': !exists(json, 'lastModified') ? undefined : json['lastModified'], 'attributes': !exists(json, 'attributes') ? undefined : json['attributes'], }; } export function LicenseDtoToJSON(value?: LicenseDto | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'id': value.id, 'key': value.key, 'licenseText': value.licenseText, 'lastModified': value.lastModified, 'attributes': value.attributes, }; }