/* 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 ApiSearchResponseAffectedComponentVersion */ export interface ApiSearchResponseAffectedComponentVersion { /** * * @type {{ [key: string]: { [key: string]: number; }; }} * @memberof ApiSearchResponseAffectedComponentVersion */ aggregations?: { [key: string]: { [key: string]: number; }; }; /** * * @type {Array} * @memberof ApiSearchResponseAffectedComponentVersion */ hits?: Array; /** * * @type {number} * @memberof ApiSearchResponseAffectedComponentVersion */ limit?: number; /** * * @type {number} * @memberof ApiSearchResponseAffectedComponentVersion */ offset?: number; /** * * @type {number} * @memberof ApiSearchResponseAffectedComponentVersion */ total?: number; } /** * Check if a given object implements the ApiSearchResponseAffectedComponentVersion interface. */ export function instanceOfApiSearchResponseAffectedComponentVersion(value: object): value is ApiSearchResponseAffectedComponentVersion { return true; } export function ApiSearchResponseAffectedComponentVersionFromJSON(json: any): ApiSearchResponseAffectedComponentVersion { return ApiSearchResponseAffectedComponentVersionFromJSONTyped(json, false); } export function ApiSearchResponseAffectedComponentVersionFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiSearchResponseAffectedComponentVersion { 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 ApiSearchResponseAffectedComponentVersionToJSON(json: any): ApiSearchResponseAffectedComponentVersion { return ApiSearchResponseAffectedComponentVersionToJSONTyped(json, false); } export function ApiSearchResponseAffectedComponentVersionToJSONTyped(value?: ApiSearchResponseAffectedComponentVersion | 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'], }; }