/* tslint:disable */ /* eslint-disable */ /** * Sonatype Lifecycle Public REST API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 1.207.0-01 * * * 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 ApiLicenseLegalFileDTO */ export interface ApiLicenseLegalFileDTO { /** * * @type {string} * @memberof ApiLicenseLegalFileDTO */ content?: string; /** * * @type {string} * @memberof ApiLicenseLegalFileDTO */ id?: string; /** * * @type {string} * @memberof ApiLicenseLegalFileDTO */ originalContentHash?: string; /** * * @type {string} * @memberof ApiLicenseLegalFileDTO */ relPath?: string; /** * * @type {string} * @memberof ApiLicenseLegalFileDTO */ status?: ApiLicenseLegalFileDTOStatusEnum; } /** * @export */ export const ApiLicenseLegalFileDTOStatusEnum = { Enabled: 'enabled', Disabled: 'disabled' } as const; export type ApiLicenseLegalFileDTOStatusEnum = typeof ApiLicenseLegalFileDTOStatusEnum[keyof typeof ApiLicenseLegalFileDTOStatusEnum]; /** * Check if a given object implements the ApiLicenseLegalFileDTO interface. */ export function instanceOfApiLicenseLegalFileDTO(value: object): value is ApiLicenseLegalFileDTO { return true; } export function ApiLicenseLegalFileDTOFromJSON(json: any): ApiLicenseLegalFileDTO { return ApiLicenseLegalFileDTOFromJSONTyped(json, false); } export function ApiLicenseLegalFileDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiLicenseLegalFileDTO { if (json == null) { return json; } return { 'content': json['content'] == null ? undefined : json['content'], 'id': json['id'] == null ? undefined : json['id'], 'originalContentHash': json['originalContentHash'] == null ? undefined : json['originalContentHash'], 'relPath': json['relPath'] == null ? undefined : json['relPath'], 'status': json['status'] == null ? undefined : json['status'], }; } export function ApiLicenseLegalFileDTOToJSON(json: any): ApiLicenseLegalFileDTO { return ApiLicenseLegalFileDTOToJSONTyped(json, false); } export function ApiLicenseLegalFileDTOToJSONTyped(value?: ApiLicenseLegalFileDTO | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'content': value['content'], 'id': value['id'], 'originalContentHash': value['originalContentHash'], 'relPath': value['relPath'], 'status': value['status'], }; }