/* 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 ApiPullRequestResult */ export interface ApiPullRequestResult { /** * * @type {boolean} * @memberof ApiPullRequestResult */ exceptionThrown?: boolean; /** * * @type {string} * @memberof ApiPullRequestResult */ reasoning?: string; /** * * @type {Date} * @memberof ApiPullRequestResult */ startTime?: Date; /** * * @type {boolean} * @memberof ApiPullRequestResult */ successful?: boolean; /** * * @type {string} * @memberof ApiPullRequestResult */ title?: string; /** * * @type {number} * @memberof ApiPullRequestResult */ totalTime?: number; } /** * Check if a given object implements the ApiPullRequestResult interface. */ export function instanceOfApiPullRequestResult(value: object): value is ApiPullRequestResult { return true; } export function ApiPullRequestResultFromJSON(json: any): ApiPullRequestResult { return ApiPullRequestResultFromJSONTyped(json, false); } export function ApiPullRequestResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiPullRequestResult { if (json == null) { return json; } return { 'exceptionThrown': json['exceptionThrown'] == null ? undefined : json['exceptionThrown'], 'reasoning': json['reasoning'] == null ? undefined : json['reasoning'], 'startTime': json['startTime'] == null ? undefined : (new Date(json['startTime'])), 'successful': json['successful'] == null ? undefined : json['successful'], 'title': json['title'] == null ? undefined : json['title'], 'totalTime': json['totalTime'] == null ? undefined : json['totalTime'], }; } export function ApiPullRequestResultToJSON(json: any): ApiPullRequestResult { return ApiPullRequestResultToJSONTyped(json, false); } export function ApiPullRequestResultToJSONTyped(value?: ApiPullRequestResult | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'exceptionThrown': value['exceptionThrown'], 'reasoning': value['reasoning'], 'startTime': value['startTime'] == null ? value['startTime'] : value['startTime'].toISOString(), 'successful': value['successful'], 'title': value['title'], 'totalTime': value['totalTime'], }; }