/* 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 ValidationResult */ export interface ValidationResult { /** * * @type {string} * @memberof ValidationResult */ message?: string; /** * * @type {boolean} * @memberof ValidationResult */ valid?: boolean; } /** * Check if a given object implements the ValidationResult interface. */ export function instanceOfValidationResult(value: object): value is ValidationResult { return true; } export function ValidationResultFromJSON(json: any): ValidationResult { return ValidationResultFromJSONTyped(json, false); } export function ValidationResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): ValidationResult { if (json == null) { return json; } return { 'message': json['message'] == null ? undefined : json['message'], 'valid': json['valid'] == null ? undefined : json['valid'], }; } export function ValidationResultToJSON(json: any): ValidationResult { return ValidationResultToJSONTyped(json, false); } export function ValidationResultToJSONTyped(value?: ValidationResult | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'message': value['message'], 'valid': value['valid'], }; }