/* 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 AttachmentText */ export interface AttachmentText { /** * * @type {string} * @memberof AttachmentText */ content?: string; /** * * @type {string} * @memberof AttachmentText */ contentType?: string; /** * * @type {string} * @memberof AttachmentText */ encoding?: string; } /** * Check if a given object implements the AttachmentText interface. */ export function instanceOfAttachmentText(value: object): value is AttachmentText { return true; } export function AttachmentTextFromJSON(json: any): AttachmentText { return AttachmentTextFromJSONTyped(json, false); } export function AttachmentTextFromJSONTyped(json: any, ignoreDiscriminator: boolean): AttachmentText { if (json == null) { return json; } return { 'content': json['content'] == null ? undefined : json['content'], 'contentType': json['contentType'] == null ? undefined : json['contentType'], 'encoding': json['encoding'] == null ? undefined : json['encoding'], }; } export function AttachmentTextToJSON(json: any): AttachmentText { return AttachmentTextToJSONTyped(json, false); } export function AttachmentTextToJSONTyped(value?: AttachmentText | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'content': value['content'], 'contentType': value['contentType'], 'encoding': value['encoding'], }; }