/* 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 MethodSignature */ export interface MethodSignature { /** * * @type {string} * @memberof MethodSignature */ signature?: string; /** * * @type {string} * @memberof MethodSignature */ type?: string; /** * * @type {Array} * @memberof MethodSignature */ vulnerableParameters?: Array; } /** * Check if a given object implements the MethodSignature interface. */ export function instanceOfMethodSignature(value: object): value is MethodSignature { return true; } export function MethodSignatureFromJSON(json: any): MethodSignature { return MethodSignatureFromJSONTyped(json, false); } export function MethodSignatureFromJSONTyped(json: any, ignoreDiscriminator: boolean): MethodSignature { if (json == null) { return json; } return { 'signature': json['signature'] == null ? undefined : json['signature'], 'type': json['type'] == null ? undefined : json['type'], 'vulnerableParameters': json['vulnerableParameters'] == null ? undefined : json['vulnerableParameters'], }; } export function MethodSignatureToJSON(json: any): MethodSignature { return MethodSignatureToJSONTyped(json, false); } export function MethodSignatureToJSONTyped(value?: MethodSignature | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'signature': value['signature'], 'type': value['type'], 'vulnerableParameters': value['vulnerableParameters'], }; }