/* 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 LicenseObligationDTO */ export interface LicenseObligationDTO { /** * * @type {string} * @memberof LicenseObligationDTO */ name?: string; /** * * @type {Set} * @memberof LicenseObligationDTO */ obligationTexts?: Set; } /** * Check if a given object implements the LicenseObligationDTO interface. */ export function instanceOfLicenseObligationDTO(value: object): value is LicenseObligationDTO { return true; } export function LicenseObligationDTOFromJSON(json: any): LicenseObligationDTO { return LicenseObligationDTOFromJSONTyped(json, false); } export function LicenseObligationDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): LicenseObligationDTO { if (json == null) { return json; } return { 'name': json['name'] == null ? undefined : json['name'], 'obligationTexts': json['obligationTexts'] == null ? undefined : new Set(json['obligationTexts']), }; } export function LicenseObligationDTOToJSON(json: any): LicenseObligationDTO { return LicenseObligationDTOToJSONTyped(json, false); } export function LicenseObligationDTOToJSONTyped(value?: LicenseObligationDTO | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'name': value['name'], 'obligationTexts': value['obligationTexts'] == null ? undefined : Array.from(value['obligationTexts'] as Set), }; }