/* 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 ApiLicenseLegalCopyrightDTO */ export interface ApiLicenseLegalCopyrightDTO { /** * * @type {string} * @memberof ApiLicenseLegalCopyrightDTO */ content?: string; /** * * @type {string} * @memberof ApiLicenseLegalCopyrightDTO */ id?: string; /** * * @type {string} * @memberof ApiLicenseLegalCopyrightDTO */ originalContentHash?: string; /** * * @type {string} * @memberof ApiLicenseLegalCopyrightDTO */ status?: ApiLicenseLegalCopyrightDTOStatusEnum; } /** * @export */ export const ApiLicenseLegalCopyrightDTOStatusEnum = { Enabled: 'enabled', Disabled: 'disabled' } as const; export type ApiLicenseLegalCopyrightDTOStatusEnum = typeof ApiLicenseLegalCopyrightDTOStatusEnum[keyof typeof ApiLicenseLegalCopyrightDTOStatusEnum]; /** * Check if a given object implements the ApiLicenseLegalCopyrightDTO interface. */ export function instanceOfApiLicenseLegalCopyrightDTO(value: object): value is ApiLicenseLegalCopyrightDTO { return true; } export function ApiLicenseLegalCopyrightDTOFromJSON(json: any): ApiLicenseLegalCopyrightDTO { return ApiLicenseLegalCopyrightDTOFromJSONTyped(json, false); } export function ApiLicenseLegalCopyrightDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiLicenseLegalCopyrightDTO { 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'], 'status': json['status'] == null ? undefined : json['status'], }; } export function ApiLicenseLegalCopyrightDTOToJSON(json: any): ApiLicenseLegalCopyrightDTO { return ApiLicenseLegalCopyrightDTOToJSONTyped(json, false); } export function ApiLicenseLegalCopyrightDTOToJSONTyped(value?: ApiLicenseLegalCopyrightDTO | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'content': value['content'], 'id': value['id'], 'originalContentHash': value['originalContentHash'], 'status': value['status'], }; }