/* 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'; /** * * @export * @interface ApiSearchResponse */ export interface ApiSearchResponse { /** * * @type {{ [key: string]: { [key: string]: number; }; }} * @memberof ApiSearchResponse */ aggregations?: { [key: string]: { [key: string]: number; }; }; /** * * @type {Array} * @memberof ApiSearchResponse */ hits?: Array; /** * * @type {number} * @memberof ApiSearchResponse */ limit?: number; /** * * @type {number} * @memberof ApiSearchResponse */ offset?: number; /** * * @type {number} * @memberof ApiSearchResponse */ total?: number; } /** * Check if a given object implements the ApiSearchResponse interface. */ export function instanceOfApiSearchResponse(value: object): value is ApiSearchResponse { return true; } export function ApiSearchResponseFromJSON(json: any): ApiSearchResponse { return ApiSearchResponseFromJSONTyped(json, false); } export function ApiSearchResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiSearchResponse { if (json == null) { return json; } return { 'aggregations': json['aggregations'] == null ? undefined : json['aggregations'], 'hits': json['hits'] == null ? undefined : json['hits'], 'limit': json['limit'] == null ? undefined : json['limit'], 'offset': json['offset'] == null ? undefined : json['offset'], 'total': json['total'] == null ? undefined : json['total'], }; } export function ApiSearchResponseToJSON(json: any): ApiSearchResponse { return ApiSearchResponseToJSONTyped(json, false); } export function ApiSearchResponseToJSONTyped(value?: ApiSearchResponse | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'aggregations': value['aggregations'], 'hits': value['hits'], 'limit': value['limit'], 'offset': value['offset'], 'total': value['total'], }; }