/* 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 ApiSourceControlEvaluationRequestDTO */ export interface ApiSourceControlEvaluationRequestDTO { /** * * @type {string} * @memberof ApiSourceControlEvaluationRequestDTO */ branchName?: string; /** * * @type {Array} * @memberof ApiSourceControlEvaluationRequestDTO */ scanTargets?: Array; /** * * @type {string} * @memberof ApiSourceControlEvaluationRequestDTO */ stageId?: string; } /** * Check if a given object implements the ApiSourceControlEvaluationRequestDTO interface. */ export function instanceOfApiSourceControlEvaluationRequestDTO(value: object): value is ApiSourceControlEvaluationRequestDTO { return true; } export function ApiSourceControlEvaluationRequestDTOFromJSON(json: any): ApiSourceControlEvaluationRequestDTO { return ApiSourceControlEvaluationRequestDTOFromJSONTyped(json, false); } export function ApiSourceControlEvaluationRequestDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiSourceControlEvaluationRequestDTO { if (json == null) { return json; } return { 'branchName': json['branchName'] == null ? undefined : json['branchName'], 'scanTargets': json['scanTargets'] == null ? undefined : json['scanTargets'], 'stageId': json['stageId'] == null ? undefined : json['stageId'], }; } export function ApiSourceControlEvaluationRequestDTOToJSON(json: any): ApiSourceControlEvaluationRequestDTO { return ApiSourceControlEvaluationRequestDTOToJSONTyped(json, false); } export function ApiSourceControlEvaluationRequestDTOToJSONTyped(value?: ApiSourceControlEvaluationRequestDTO | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'branchName': value['branchName'], 'scanTargets': value['scanTargets'], 'stageId': value['stageId'], }; }