/* 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 ApiOwnerDTO */ export interface ApiOwnerDTO { /** * * @type {string} * @memberof ApiOwnerDTO */ ownerId?: string; /** * * @type {string} * @memberof ApiOwnerDTO */ ownerName?: string; /** * * @type {string} * @memberof ApiOwnerDTO */ ownerPublicId?: string; /** * * @type {string} * @memberof ApiOwnerDTO */ ownerType?: string; } /** * Check if a given object implements the ApiOwnerDTO interface. */ export function instanceOfApiOwnerDTO(value: object): value is ApiOwnerDTO { return true; } export function ApiOwnerDTOFromJSON(json: any): ApiOwnerDTO { return ApiOwnerDTOFromJSONTyped(json, false); } export function ApiOwnerDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiOwnerDTO { if (json == null) { return json; } return { 'ownerId': json['ownerId'] == null ? undefined : json['ownerId'], 'ownerName': json['ownerName'] == null ? undefined : json['ownerName'], 'ownerPublicId': json['ownerPublicId'] == null ? undefined : json['ownerPublicId'], 'ownerType': json['ownerType'] == null ? undefined : json['ownerType'], }; } export function ApiOwnerDTOToJSON(json: any): ApiOwnerDTO { return ApiOwnerDTOToJSONTyped(json, false); } export function ApiOwnerDTOToJSONTyped(value?: ApiOwnerDTO | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'ownerId': value['ownerId'], 'ownerName': value['ownerName'], 'ownerPublicId': value['ownerPublicId'], 'ownerType': value['ownerType'], }; }