/* 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 AttributionReportTemplateDTO */ export interface AttributionReportTemplateDTO { /** * * @type {string} * @memberof AttributionReportTemplateDTO */ documentTitle?: string; /** * * @type {string} * @memberof AttributionReportTemplateDTO */ footer?: string; /** * * @type {string} * @memberof AttributionReportTemplateDTO */ header?: string; /** * * @type {string} * @memberof AttributionReportTemplateDTO */ id?: string; /** * * @type {boolean} * @memberof AttributionReportTemplateDTO */ includeAppendix?: boolean; /** * * @type {boolean} * @memberof AttributionReportTemplateDTO */ includeInnerSource?: boolean; /** * * @type {boolean} * @memberof AttributionReportTemplateDTO */ includeSonatypeSpecialLicenses?: boolean; /** * * @type {boolean} * @memberof AttributionReportTemplateDTO */ includeStandardLicenseTexts?: boolean; /** * * @type {boolean} * @memberof AttributionReportTemplateDTO */ includeTableOfContents?: boolean; /** * * @type {Date} * @memberof AttributionReportTemplateDTO */ lastUpdatedAt?: Date; /** * * @type {string} * @memberof AttributionReportTemplateDTO */ templateName?: string; } /** * Check if a given object implements the AttributionReportTemplateDTO interface. */ export function instanceOfAttributionReportTemplateDTO(value: object): value is AttributionReportTemplateDTO { return true; } export function AttributionReportTemplateDTOFromJSON(json: any): AttributionReportTemplateDTO { return AttributionReportTemplateDTOFromJSONTyped(json, false); } export function AttributionReportTemplateDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): AttributionReportTemplateDTO { if (json == null) { return json; } return { 'documentTitle': json['documentTitle'] == null ? undefined : json['documentTitle'], 'footer': json['footer'] == null ? undefined : json['footer'], 'header': json['header'] == null ? undefined : json['header'], 'id': json['id'] == null ? undefined : json['id'], 'includeAppendix': json['includeAppendix'] == null ? undefined : json['includeAppendix'], 'includeInnerSource': json['includeInnerSource'] == null ? undefined : json['includeInnerSource'], 'includeSonatypeSpecialLicenses': json['includeSonatypeSpecialLicenses'] == null ? undefined : json['includeSonatypeSpecialLicenses'], 'includeStandardLicenseTexts': json['includeStandardLicenseTexts'] == null ? undefined : json['includeStandardLicenseTexts'], 'includeTableOfContents': json['includeTableOfContents'] == null ? undefined : json['includeTableOfContents'], 'lastUpdatedAt': json['lastUpdatedAt'] == null ? undefined : (new Date(json['lastUpdatedAt'])), 'templateName': json['templateName'] == null ? undefined : json['templateName'], }; } export function AttributionReportTemplateDTOToJSON(json: any): AttributionReportTemplateDTO { return AttributionReportTemplateDTOToJSONTyped(json, false); } export function AttributionReportTemplateDTOToJSONTyped(value?: AttributionReportTemplateDTO | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'documentTitle': value['documentTitle'], 'footer': value['footer'], 'header': value['header'], 'id': value['id'], 'includeAppendix': value['includeAppendix'], 'includeInnerSource': value['includeInnerSource'], 'includeSonatypeSpecialLicenses': value['includeSonatypeSpecialLicenses'], 'includeStandardLicenseTexts': value['includeStandardLicenseTexts'], 'includeTableOfContents': value['includeTableOfContents'], 'lastUpdatedAt': value['lastUpdatedAt'] == null ? value['lastUpdatedAt'] : value['lastUpdatedAt'].toISOString(), 'templateName': value['templateName'], }; }