/* 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 { ApiFirewallQuarantinedComponentDto } from './ApiFirewallQuarantinedComponentDto'; import { ApiFirewallQuarantinedComponentDtoFromJSON, ApiFirewallQuarantinedComponentDtoFromJSONTyped, ApiFirewallQuarantinedComponentDtoToJSON, ApiFirewallQuarantinedComponentDtoToJSONTyped, } from './ApiFirewallQuarantinedComponentDto'; /** * * @export * @interface ApiFirewallQuarantinedComponentDtoResult */ export interface ApiFirewallQuarantinedComponentDtoResult { /** * Current page number * @type {number} * @memberof ApiFirewallQuarantinedComponentDtoResult */ page?: number; /** * Total number of pages * @type {number} * @memberof ApiFirewallQuarantinedComponentDtoResult */ pageCount?: number; /** * Number of items per page * @type {number} * @memberof ApiFirewallQuarantinedComponentDtoResult */ pageSize?: number; /** * List of items for the current page * @type {Array} * @memberof ApiFirewallQuarantinedComponentDtoResult */ results?: Array; /** * Total number of items * @type {number} * @memberof ApiFirewallQuarantinedComponentDtoResult */ total?: number; } /** * Check if a given object implements the ApiFirewallQuarantinedComponentDtoResult interface. */ export function instanceOfApiFirewallQuarantinedComponentDtoResult(value: object): value is ApiFirewallQuarantinedComponentDtoResult { return true; } export function ApiFirewallQuarantinedComponentDtoResultFromJSON(json: any): ApiFirewallQuarantinedComponentDtoResult { return ApiFirewallQuarantinedComponentDtoResultFromJSONTyped(json, false); } export function ApiFirewallQuarantinedComponentDtoResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiFirewallQuarantinedComponentDtoResult { 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(ApiFirewallQuarantinedComponentDtoFromJSON)), 'total': json['total'] == null ? undefined : json['total'], }; } export function ApiFirewallQuarantinedComponentDtoResultToJSON(json: any): ApiFirewallQuarantinedComponentDtoResult { return ApiFirewallQuarantinedComponentDtoResultToJSONTyped(json, false); } export function ApiFirewallQuarantinedComponentDtoResultToJSONTyped(value?: ApiFirewallQuarantinedComponentDtoResult | 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(ApiFirewallQuarantinedComponentDtoToJSON)), 'total': value['total'], }; }