/* 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 { ApiPermissionCategoryDTO } from './ApiPermissionCategoryDTO'; import { ApiPermissionCategoryDTOFromJSON, ApiPermissionCategoryDTOFromJSONTyped, ApiPermissionCategoryDTOToJSON, ApiPermissionCategoryDTOToJSONTyped, } from './ApiPermissionCategoryDTO'; /** * * @export * @interface ApiRoleDTO */ export interface ApiRoleDTO { /** * * @type {boolean} * @memberof ApiRoleDTO */ builtIn?: boolean; /** * * @type {string} * @memberof ApiRoleDTO */ description?: string; /** * * @type {string} * @memberof ApiRoleDTO */ id?: string; /** * * @type {string} * @memberof ApiRoleDTO */ name?: string; /** * * @type {Array} * @memberof ApiRoleDTO */ permissionCategories?: Array; } /** * Check if a given object implements the ApiRoleDTO interface. */ export function instanceOfApiRoleDTO(value: object): value is ApiRoleDTO { return true; } export function ApiRoleDTOFromJSON(json: any): ApiRoleDTO { return ApiRoleDTOFromJSONTyped(json, false); } export function ApiRoleDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiRoleDTO { if (json == null) { return json; } return { 'builtIn': json['builtIn'] == null ? undefined : json['builtIn'], 'description': json['description'] == null ? undefined : json['description'], 'id': json['id'] == null ? undefined : json['id'], 'name': json['name'] == null ? undefined : json['name'], 'permissionCategories': json['permissionCategories'] == null ? undefined : ((json['permissionCategories'] as Array).map(ApiPermissionCategoryDTOFromJSON)), }; } export function ApiRoleDTOToJSON(json: any): ApiRoleDTO { return ApiRoleDTOToJSONTyped(json, false); } export function ApiRoleDTOToJSONTyped(value?: ApiRoleDTO | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'builtIn': value['builtIn'], 'description': value['description'], 'id': value['id'], 'name': value['name'], 'permissionCategories': value['permissionCategories'] == null ? undefined : ((value['permissionCategories'] as Array).map(ApiPermissionCategoryDTOToJSON)), }; }