/* 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 { ApiRoleDTO } from './ApiRoleDTO'; import { ApiRoleDTOFromJSON, ApiRoleDTOFromJSONTyped, ApiRoleDTOToJSON, ApiRoleDTOToJSONTyped, } from './ApiRoleDTO'; /** * * @export * @interface ApiRoleListDTO */ export interface ApiRoleListDTO { /** * * @type {Array} * @memberof ApiRoleListDTO */ roles?: Array; } /** * Check if a given object implements the ApiRoleListDTO interface. */ export function instanceOfApiRoleListDTO(value: object): value is ApiRoleListDTO { return true; } export function ApiRoleListDTOFromJSON(json: any): ApiRoleListDTO { return ApiRoleListDTOFromJSONTyped(json, false); } export function ApiRoleListDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiRoleListDTO { if (json == null) { return json; } return { 'roles': json['roles'] == null ? undefined : ((json['roles'] as Array).map(ApiRoleDTOFromJSON)), }; } export function ApiRoleListDTOToJSON(json: any): ApiRoleListDTO { return ApiRoleListDTOToJSONTyped(json, false); } export function ApiRoleListDTOToJSONTyped(value?: ApiRoleListDTO | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'roles': value['roles'] == null ? undefined : ((value['roles'] as Array).map(ApiRoleDTOToJSON)), }; }