/* tslint:disable */ /* eslint-disable */ /** * Sonatype Guide API * REST API into [Sonatype Guide](https://guide.sonatype.com). * * The version of the OpenAPI document: 202607 * * * 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 ComponentDocument */ export interface ComponentDocument { /** * * @type {boolean} * @memberof ComponentDocument */ malware?: boolean; } /** * Check if a given object implements the ComponentDocument interface. */ export function instanceOfComponentDocument(value: object): value is ComponentDocument { return true; } export function ComponentDocumentFromJSON(json: any): ComponentDocument { return ComponentDocumentFromJSONTyped(json, false); } export function ComponentDocumentFromJSONTyped(json: any, ignoreDiscriminator: boolean): ComponentDocument { if (json == null) { return json; } return { 'malware': json['malware'] == null ? undefined : json['malware'], }; } export function ComponentDocumentToJSON(json: any): ComponentDocument { return ComponentDocumentToJSONTyped(json, false); } export function ComponentDocumentToJSONTyped(value?: ComponentDocument | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'malware': value['malware'], }; }