/* 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'; import type { AttachmentText } from './AttachmentText'; import { AttachmentTextFromJSON, AttachmentTextFromJSONTyped, AttachmentTextToJSON, AttachmentTextToJSONTyped, } from './AttachmentText'; /** * * @export * @interface Swid */ export interface Swid { /** * * @type {string} * @memberof Swid */ name?: string; /** * * @type {boolean} * @memberof Swid */ patch?: boolean; /** * * @type {string} * @memberof Swid */ tagId?: string; /** * * @type {number} * @memberof Swid */ tagVersion?: number; /** * * @type {AttachmentText} * @memberof Swid */ text?: AttachmentText; /** * * @type {string} * @memberof Swid */ version?: string; } /** * Check if a given object implements the Swid interface. */ export function instanceOfSwid(value: object): value is Swid { return true; } export function SwidFromJSON(json: any): Swid { return SwidFromJSONTyped(json, false); } export function SwidFromJSONTyped(json: any, ignoreDiscriminator: boolean): Swid { if (json == null) { return json; } return { 'name': json['name'] == null ? undefined : json['name'], 'patch': json['patch'] == null ? undefined : json['patch'], 'tagId': json['tagId'] == null ? undefined : json['tagId'], 'tagVersion': json['tagVersion'] == null ? undefined : json['tagVersion'], 'text': json['text'] == null ? undefined : AttachmentTextFromJSON(json['text']), 'version': json['version'] == null ? undefined : json['version'], }; } export function SwidToJSON(json: any): Swid { return SwidToJSONTyped(json, false); } export function SwidToJSONTyped(value?: Swid | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'name': value['name'], 'patch': value['patch'], 'tagId': value['tagId'], 'tagVersion': value['tagVersion'], 'text': AttachmentTextToJSON(value['text']), 'version': value['version'], }; }