/* 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 PolicyOwner */ export interface PolicyOwner { /** * * @type {string} * @memberof PolicyOwner */ ownerId?: string; /** * * @type {string} * @memberof PolicyOwner */ ownerName?: string; /** * * @type {string} * @memberof PolicyOwner */ ownerPublicId?: string; /** * * @type {string} * @memberof PolicyOwner */ ownerType?: string; } /** * Check if a given object implements the PolicyOwner interface. */ export function instanceOfPolicyOwner(value: object): value is PolicyOwner { return true; } export function PolicyOwnerFromJSON(json: any): PolicyOwner { return PolicyOwnerFromJSONTyped(json, false); } export function PolicyOwnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): PolicyOwner { 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 PolicyOwnerToJSON(json: any): PolicyOwner { return PolicyOwnerToJSONTyped(json, false); } export function PolicyOwnerToJSONTyped(value?: PolicyOwner | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'ownerId': value['ownerId'], 'ownerName': value['ownerName'], 'ownerPublicId': value['ownerPublicId'], 'ownerType': value['ownerType'], }; }