/* 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 { ApiRoleWithMembersByOwnerDTO } from './ApiRoleWithMembersByOwnerDTO'; import { ApiRoleWithMembersByOwnerDTOFromJSON, ApiRoleWithMembersByOwnerDTOFromJSONTyped, ApiRoleWithMembersByOwnerDTOToJSON, ApiRoleWithMembersByOwnerDTOToJSONTyped, } from './ApiRoleWithMembersByOwnerDTO'; /** * * @export * @interface ApiApplicableMembershipMappingsDTO */ export interface ApiApplicableMembershipMappingsDTO { /** * * @type {boolean} * @memberof ApiApplicableMembershipMappingsDTO */ groupSearchEnabled?: boolean; /** * * @type {Array} * @memberof ApiApplicableMembershipMappingsDTO */ membersByRole?: Array; } /** * Check if a given object implements the ApiApplicableMembershipMappingsDTO interface. */ export function instanceOfApiApplicableMembershipMappingsDTO(value: object): value is ApiApplicableMembershipMappingsDTO { return true; } export function ApiApplicableMembershipMappingsDTOFromJSON(json: any): ApiApplicableMembershipMappingsDTO { return ApiApplicableMembershipMappingsDTOFromJSONTyped(json, false); } export function ApiApplicableMembershipMappingsDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiApplicableMembershipMappingsDTO { if (json == null) { return json; } return { 'groupSearchEnabled': json['groupSearchEnabled'] == null ? undefined : json['groupSearchEnabled'], 'membersByRole': json['membersByRole'] == null ? undefined : ((json['membersByRole'] as Array).map(ApiRoleWithMembersByOwnerDTOFromJSON)), }; } export function ApiApplicableMembershipMappingsDTOToJSON(json: any): ApiApplicableMembershipMappingsDTO { return ApiApplicableMembershipMappingsDTOToJSONTyped(json, false); } export function ApiApplicableMembershipMappingsDTOToJSONTyped(value?: ApiApplicableMembershipMappingsDTO | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'groupSearchEnabled': value['groupSearchEnabled'], 'membersByRole': value['membersByRole'] == null ? undefined : ((value['membersByRole'] as Array).map(ApiRoleWithMembersByOwnerDTOToJSON)), }; }