/* 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 ProductRangeAggregationResource */ export interface ProductRangeAggregationResource { /** * * @type {Array} * @memberof ProductRangeAggregationResource */ attributes: Array; /** * * @type {Array} * @memberof ProductRangeAggregationResource */ brands: Array; /** * * @type {Array} * @memberof ProductRangeAggregationResource */ categories: Array; } /** * Check if a given object implements the ProductRangeAggregationResource interface. */ export function instanceOfProductRangeAggregationResource(value: object): value is ProductRangeAggregationResource { if (!('attributes' in value) || value['attributes'] === undefined) return false; if (!('brands' in value) || value['brands'] === undefined) return false; if (!('categories' in value) || value['categories'] === undefined) return false; return true; } export function ProductRangeAggregationResourceFromJSON(json: any): ProductRangeAggregationResource { return ProductRangeAggregationResourceFromJSONTyped(json, false); } export function ProductRangeAggregationResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductRangeAggregationResource { if (json == null) { return json; } return { 'attributes': json['attributes'], 'brands': json['brands'], 'categories': json['categories'], }; } export function ProductRangeAggregationResourceToJSON(json: any): ProductRangeAggregationResource { return ProductRangeAggregationResourceToJSONTyped(json, false); } export function ProductRangeAggregationResourceToJSONTyped(value?: ProductRangeAggregationResource | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'attributes': value['attributes'], 'brands': value['brands'], 'categories': value['categories'], }; }