/* 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 Action */ export interface Action { /** * * @type {string} * @memberof Action */ actionTypeId?: string; /** * * @type {string} * @memberof Action */ target?: string; /** * * @type {string} * @memberof Action */ targetType?: string; } /** * Check if a given object implements the Action interface. */ export function instanceOfAction(value: object): value is Action { return true; } export function ActionFromJSON(json: any): Action { return ActionFromJSONTyped(json, false); } export function ActionFromJSONTyped(json: any, ignoreDiscriminator: boolean): Action { if (json == null) { return json; } return { 'actionTypeId': json['actionTypeId'] == null ? undefined : json['actionTypeId'], 'target': json['target'] == null ? undefined : json['target'], 'targetType': json['targetType'] == null ? undefined : json['targetType'], }; } export function ActionToJSON(json: any): Action { return ActionToJSONTyped(json, false); } export function ActionToJSONTyped(value?: Action | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'actionTypeId': value['actionTypeId'], 'target': value['target'], 'targetType': value['targetType'], }; }