/* 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 RemovalPrResult */ export interface RemovalPrResult { /** * * @type {boolean} * @memberof RemovalPrResult */ merged?: boolean; /** * * @type {string} * @memberof RemovalPrResult */ message?: string; /** * * @type {string} * @memberof RemovalPrResult */ outcome?: string; /** * * @type {string} * @memberof RemovalPrResult */ prUrl?: string; } /** * Check if a given object implements the RemovalPrResult interface. */ export function instanceOfRemovalPrResult(value: object): value is RemovalPrResult { return true; } export function RemovalPrResultFromJSON(json: any): RemovalPrResult { return RemovalPrResultFromJSONTyped(json, false); } export function RemovalPrResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): RemovalPrResult { if (json == null) { return json; } return { 'merged': json['merged'] == null ? undefined : json['merged'], 'message': json['message'] == null ? undefined : json['message'], 'outcome': json['outcome'] == null ? undefined : json['outcome'], 'prUrl': json['prUrl'] == null ? undefined : json['prUrl'], }; } export function RemovalPrResultToJSON(json: any): RemovalPrResult { return RemovalPrResultToJSONTyped(json, false); } export function RemovalPrResultToJSONTyped(value?: RemovalPrResult | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'merged': value['merged'], 'message': value['message'], 'outcome': value['outcome'], 'prUrl': value['prUrl'], }; }