/* 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 { PrioritizedComponent } from './PrioritizedComponent'; import { PrioritizedComponentFromJSON, PrioritizedComponentFromJSONTyped, PrioritizedComponentToJSON, PrioritizedComponentToJSONTyped, } from './PrioritizedComponent'; /** * Paginated response wrapper * @export * @interface ApiPageResultPrioritizedComponent */ export interface ApiPageResultPrioritizedComponent { /** * Current page number * @type {number} * @memberof ApiPageResultPrioritizedComponent */ page?: number; /** * Total number of pages * @type {number} * @memberof ApiPageResultPrioritizedComponent */ pageCount?: number; /** * Number of items per page * @type {number} * @memberof ApiPageResultPrioritizedComponent */ pageSize?: number; /** * List of items for the current page * @type {Array} * @memberof ApiPageResultPrioritizedComponent */ results?: Array; /** * Total number of items * @type {number} * @memberof ApiPageResultPrioritizedComponent */ total?: number; } /** * Check if a given object implements the ApiPageResultPrioritizedComponent interface. */ export function instanceOfApiPageResultPrioritizedComponent(value: object): value is ApiPageResultPrioritizedComponent { return true; } export function ApiPageResultPrioritizedComponentFromJSON(json: any): ApiPageResultPrioritizedComponent { return ApiPageResultPrioritizedComponentFromJSONTyped(json, false); } export function ApiPageResultPrioritizedComponentFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiPageResultPrioritizedComponent { if (json == null) { return json; } return { 'page': json['page'] == null ? undefined : json['page'], 'pageCount': json['pageCount'] == null ? undefined : json['pageCount'], 'pageSize': json['pageSize'] == null ? undefined : json['pageSize'], 'results': json['results'] == null ? undefined : ((json['results'] as Array).map(PrioritizedComponentFromJSON)), 'total': json['total'] == null ? undefined : json['total'], }; } export function ApiPageResultPrioritizedComponentToJSON(json: any): ApiPageResultPrioritizedComponent { return ApiPageResultPrioritizedComponentToJSONTyped(json, false); } export function ApiPageResultPrioritizedComponentToJSONTyped(value?: ApiPageResultPrioritizedComponent | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'page': value['page'], 'pageCount': value['pageCount'], 'pageSize': value['pageSize'], 'results': value['results'] == null ? undefined : ((value['results'] as Array).map(PrioritizedComponentToJSON)), 'total': value['total'], }; }