/* tslint:disable */ /* eslint-disable */ /** * My API * API documentation for my Laravel app * * The version of the OpenAPI document: 1.0.0 * * * 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 { ProductRangeAggregationResource } from './ProductRangeAggregationResource'; import { ProductRangeAggregationResourceFromJSON, ProductRangeAggregationResourceFromJSONTyped, ProductRangeAggregationResourceToJSON, ProductRangeAggregationResourceToJSONTyped, } from './ProductRangeAggregationResource'; import type { ProductRangeSearchResponseResourceMeta } from './ProductRangeSearchResponseResourceMeta'; import { ProductRangeSearchResponseResourceMetaFromJSON, ProductRangeSearchResponseResourceMetaFromJSONTyped, ProductRangeSearchResponseResourceMetaToJSON, ProductRangeSearchResponseResourceMetaToJSONTyped, } from './ProductRangeSearchResponseResourceMeta'; import type { ProductRangeSearchResultResource } from './ProductRangeSearchResultResource'; import { ProductRangeSearchResultResourceFromJSON, ProductRangeSearchResultResourceFromJSONTyped, ProductRangeSearchResultResourceToJSON, ProductRangeSearchResultResourceToJSONTyped, } from './ProductRangeSearchResultResource'; /** * * @export * @interface ProductRangeSearchResponseResource */ export interface ProductRangeSearchResponseResource { /** * * @type {Array} * @memberof ProductRangeSearchResponseResource */ data: Array; /** * * @type {ProductRangeSearchResponseResourceMeta} * @memberof ProductRangeSearchResponseResource */ meta: ProductRangeSearchResponseResourceMeta; /** * * @type {ProductRangeAggregationResource} * @memberof ProductRangeSearchResponseResource */ aggregations: ProductRangeAggregationResource; } /** * Check if a given object implements the ProductRangeSearchResponseResource interface. */ export function instanceOfProductRangeSearchResponseResource(value: object): value is ProductRangeSearchResponseResource { if (!('data' in value) || value['data'] === undefined) return false; if (!('meta' in value) || value['meta'] === undefined) return false; if (!('aggregations' in value) || value['aggregations'] === undefined) return false; return true; } export function ProductRangeSearchResponseResourceFromJSON(json: any): ProductRangeSearchResponseResource { return ProductRangeSearchResponseResourceFromJSONTyped(json, false); } export function ProductRangeSearchResponseResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductRangeSearchResponseResource { if (json == null) { return json; } return { 'data': ((json['data'] as Array).map(ProductRangeSearchResultResourceFromJSON)), 'meta': ProductRangeSearchResponseResourceMetaFromJSON(json['meta']), 'aggregations': ProductRangeAggregationResourceFromJSON(json['aggregations']), }; } export function ProductRangeSearchResponseResourceToJSON(json: any): ProductRangeSearchResponseResource { return ProductRangeSearchResponseResourceToJSONTyped(json, false); } export function ProductRangeSearchResponseResourceToJSONTyped(value?: ProductRangeSearchResponseResource | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'data': ((value['data'] as Array).map(ProductRangeSearchResultResourceToJSON)), 'meta': ProductRangeSearchResponseResourceMetaToJSON(value['meta']), 'aggregations': ProductRangeAggregationResourceToJSON(value['aggregations']), }; }