/* 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 { SCMUserMappingsDTO } from './SCMUserMappingsDTO'; import { SCMUserMappingsDTOFromJSON, SCMUserMappingsDTOFromJSONTyped, SCMUserMappingsDTOToJSON, SCMUserMappingsDTOToJSONTyped, } from './SCMUserMappingsDTO'; /** * * @export * @interface SCMUserMappingsResponseDTO */ export interface SCMUserMappingsResponseDTO { /** * * @type {boolean} * @memberof SCMUserMappingsResponseDTO */ inherited?: boolean; /** * * @type {string} * @memberof SCMUserMappingsResponseDTO */ ownerInternalId?: string; /** * * @type {SCMUserMappingsDTO} * @memberof SCMUserMappingsResponseDTO */ userMapping?: SCMUserMappingsDTO; } /** * Check if a given object implements the SCMUserMappingsResponseDTO interface. */ export function instanceOfSCMUserMappingsResponseDTO(value: object): value is SCMUserMappingsResponseDTO { return true; } export function SCMUserMappingsResponseDTOFromJSON(json: any): SCMUserMappingsResponseDTO { return SCMUserMappingsResponseDTOFromJSONTyped(json, false); } export function SCMUserMappingsResponseDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): SCMUserMappingsResponseDTO { if (json == null) { return json; } return { 'inherited': json['inherited'] == null ? undefined : json['inherited'], 'ownerInternalId': json['ownerInternalId'] == null ? undefined : json['ownerInternalId'], 'userMapping': json['userMapping'] == null ? undefined : SCMUserMappingsDTOFromJSON(json['userMapping']), }; } export function SCMUserMappingsResponseDTOToJSON(json: any): SCMUserMappingsResponseDTO { return SCMUserMappingsResponseDTOToJSONTyped(json, false); } export function SCMUserMappingsResponseDTOToJSONTyped(value?: SCMUserMappingsResponseDTO | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'inherited': value['inherited'], 'ownerInternalId': value['ownerInternalId'], 'userMapping': SCMUserMappingsDTOToJSON(value['userMapping']), }; }