/* 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 LegalSourceLinkDTO */ export interface LegalSourceLinkDTO { /** * * @type {string} * @memberof LegalSourceLinkDTO */ content?: string; /** * * @type {string} * @memberof LegalSourceLinkDTO */ id?: string; /** * * @type {string} * @memberof LegalSourceLinkDTO */ originalContent?: string; /** * * @type {string} * @memberof LegalSourceLinkDTO */ status?: LegalSourceLinkDTOStatusEnum; } /** * @export */ export const LegalSourceLinkDTOStatusEnum = { Enabled: 'enabled', Disabled: 'disabled' } as const; export type LegalSourceLinkDTOStatusEnum = typeof LegalSourceLinkDTOStatusEnum[keyof typeof LegalSourceLinkDTOStatusEnum]; /** * Check if a given object implements the LegalSourceLinkDTO interface. */ export function instanceOfLegalSourceLinkDTO(value: object): value is LegalSourceLinkDTO { return true; } export function LegalSourceLinkDTOFromJSON(json: any): LegalSourceLinkDTO { return LegalSourceLinkDTOFromJSONTyped(json, false); } export function LegalSourceLinkDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): LegalSourceLinkDTO { if (json == null) { return json; } return { 'content': json['content'] == null ? undefined : json['content'], 'id': json['id'] == null ? undefined : json['id'], 'originalContent': json['originalContent'] == null ? undefined : json['originalContent'], 'status': json['status'] == null ? undefined : json['status'], }; } export function LegalSourceLinkDTOToJSON(json: any): LegalSourceLinkDTO { return LegalSourceLinkDTOToJSONTyped(json, false); } export function LegalSourceLinkDTOToJSONTyped(value?: LegalSourceLinkDTO | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'content': value['content'], 'id': value['id'], 'originalContent': value['originalContent'], 'status': value['status'], }; }