/* tslint:disable */ /* eslint-disable */ /** * Sonatype Guide API * REST API into [Sonatype Guide](https://guide.sonatype.com). * * The version of the OpenAPI document: 202607 * * * 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 { DashboardRowResponse } from './DashboardRowResponse'; import { DashboardRowResponseFromJSON, DashboardRowResponseFromJSONTyped, DashboardRowResponseToJSON, DashboardRowResponseToJSONTyped, } from './DashboardRowResponse'; /** * * @export * @interface DashboardPageResponse */ export interface DashboardPageResponse { /** * * @type {Array} * @memberof DashboardPageResponse */ rows?: Array; /** * * @type {number} * @memberof DashboardPageResponse */ total?: number; } /** * Check if a given object implements the DashboardPageResponse interface. */ export function instanceOfDashboardPageResponse(value: object): value is DashboardPageResponse { return true; } export function DashboardPageResponseFromJSON(json: any): DashboardPageResponse { return DashboardPageResponseFromJSONTyped(json, false); } export function DashboardPageResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DashboardPageResponse { if (json == null) { return json; } return { 'rows': json['rows'] == null ? undefined : ((json['rows'] as Array).map(DashboardRowResponseFromJSON)), 'total': json['total'] == null ? undefined : json['total'], }; } export function DashboardPageResponseToJSON(json: any): DashboardPageResponse { return DashboardPageResponseToJSONTyped(json, false); } export function DashboardPageResponseToJSONTyped(value?: DashboardPageResponse | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'rows': value['rows'] == null ? undefined : ((value['rows'] as Array).map(DashboardRowResponseToJSON)), 'total': value['total'], }; }