/* 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 ApiPromoteScanRequestDTOV2 */ export interface ApiPromoteScanRequestDTOV2 { /** * * @type {string} * @memberof ApiPromoteScanRequestDTOV2 */ scanId?: string; /** * * @type {string} * @memberof ApiPromoteScanRequestDTOV2 */ sourceStageId?: string; /** * * @type {string} * @memberof ApiPromoteScanRequestDTOV2 */ targetStageId?: string; } /** * Check if a given object implements the ApiPromoteScanRequestDTOV2 interface. */ export function instanceOfApiPromoteScanRequestDTOV2(value: object): value is ApiPromoteScanRequestDTOV2 { return true; } export function ApiPromoteScanRequestDTOV2FromJSON(json: any): ApiPromoteScanRequestDTOV2 { return ApiPromoteScanRequestDTOV2FromJSONTyped(json, false); } export function ApiPromoteScanRequestDTOV2FromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiPromoteScanRequestDTOV2 { if (json == null) { return json; } return { 'scanId': json['scanId'] == null ? undefined : json['scanId'], 'sourceStageId': json['sourceStageId'] == null ? undefined : json['sourceStageId'], 'targetStageId': json['targetStageId'] == null ? undefined : json['targetStageId'], }; } export function ApiPromoteScanRequestDTOV2ToJSON(json: any): ApiPromoteScanRequestDTOV2 { return ApiPromoteScanRequestDTOV2ToJSONTyped(json, false); } export function ApiPromoteScanRequestDTOV2ToJSONTyped(value?: ApiPromoteScanRequestDTOV2 | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'scanId': value['scanId'], 'sourceStageId': value['sourceStageId'], 'targetStageId': value['targetStageId'], }; }