/* 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'; /** * * @export * @interface ProductAggregationResource */ export interface ProductAggregationResource { /** * * @type {Array} * @memberof ProductAggregationResource */ attributes: Array; /** * * @type {Array} * @memberof ProductAggregationResource */ priceRanges: Array; /** * * @type {Array} * @memberof ProductAggregationResource */ brands: Array; /** * * @type {Array} * @memberof ProductAggregationResource */ ratings: Array; } /** * Check if a given object implements the ProductAggregationResource interface. */ export function instanceOfProductAggregationResource(value: object): value is ProductAggregationResource { if (!('attributes' in value) || value['attributes'] === undefined) return false; if (!('priceRanges' in value) || value['priceRanges'] === undefined) return false; if (!('brands' in value) || value['brands'] === undefined) return false; if (!('ratings' in value) || value['ratings'] === undefined) return false; return true; } export function ProductAggregationResourceFromJSON(json: any): ProductAggregationResource { return ProductAggregationResourceFromJSONTyped(json, false); } export function ProductAggregationResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductAggregationResource { if (json == null) { return json; } return { 'attributes': json['attributes'], 'priceRanges': json['priceRanges'], 'brands': json['brands'], 'ratings': json['ratings'], }; } export function ProductAggregationResourceToJSON(json: any): ProductAggregationResource { return ProductAggregationResourceToJSONTyped(json, false); } export function ProductAggregationResourceToJSONTyped(value?: ProductAggregationResource | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'attributes': value['attributes'], 'priceRanges': value['priceRanges'], 'brands': value['brands'], 'ratings': value['ratings'], }; }