/* 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 ApiMemberWithDetailsDTO */ export interface ApiMemberWithDetailsDTO { /** * * @type {string} * @memberof ApiMemberWithDetailsDTO */ displayName?: string; /** * * @type {string} * @memberof ApiMemberWithDetailsDTO */ email?: string; /** * * @type {string} * @memberof ApiMemberWithDetailsDTO */ internalName?: string; /** * * @type {string} * @memberof ApiMemberWithDetailsDTO */ realm?: string; /** * * @type {string} * @memberof ApiMemberWithDetailsDTO */ type?: ApiMemberWithDetailsDTOTypeEnum; } /** * @export */ export const ApiMemberWithDetailsDTOTypeEnum = { User: 'USER', Group: 'GROUP' } as const; export type ApiMemberWithDetailsDTOTypeEnum = typeof ApiMemberWithDetailsDTOTypeEnum[keyof typeof ApiMemberWithDetailsDTOTypeEnum]; /** * Check if a given object implements the ApiMemberWithDetailsDTO interface. */ export function instanceOfApiMemberWithDetailsDTO(value: object): value is ApiMemberWithDetailsDTO { return true; } export function ApiMemberWithDetailsDTOFromJSON(json: any): ApiMemberWithDetailsDTO { return ApiMemberWithDetailsDTOFromJSONTyped(json, false); } export function ApiMemberWithDetailsDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiMemberWithDetailsDTO { if (json == null) { return json; } return { 'displayName': json['displayName'] == null ? undefined : json['displayName'], 'email': json['email'] == null ? undefined : json['email'], 'internalName': json['internalName'] == null ? undefined : json['internalName'], 'realm': json['realm'] == null ? undefined : json['realm'], 'type': json['type'] == null ? undefined : json['type'], }; } export function ApiMemberWithDetailsDTOToJSON(json: any): ApiMemberWithDetailsDTO { return ApiMemberWithDetailsDTOToJSONTyped(json, false); } export function ApiMemberWithDetailsDTOToJSONTyped(value?: ApiMemberWithDetailsDTO | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'displayName': value['displayName'], 'email': value['email'], 'internalName': value['internalName'], 'realm': value['realm'], 'type': value['type'], }; }