/* 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 ProductSearchResponseResourcePriceInfo */ export interface ProductSearchResponseResourcePriceInfo { /** * * @type {number} * @memberof ProductSearchResponseResourcePriceInfo */ minPrice: number; /** * * @type {number} * @memberof ProductSearchResponseResourcePriceInfo */ maxPrice: number; /** * * @type {number} * @memberof ProductSearchResponseResourcePriceInfo */ lowestPrice: number; /** * * @type {number} * @memberof ProductSearchResponseResourcePriceInfo */ highestPrice: number; } /** * Check if a given object implements the ProductSearchResponseResourcePriceInfo interface. */ export function instanceOfProductSearchResponseResourcePriceInfo(value: object): value is ProductSearchResponseResourcePriceInfo { if (!('minPrice' in value) || value['minPrice'] === undefined) return false; if (!('maxPrice' in value) || value['maxPrice'] === undefined) return false; if (!('lowestPrice' in value) || value['lowestPrice'] === undefined) return false; if (!('highestPrice' in value) || value['highestPrice'] === undefined) return false; return true; } export function ProductSearchResponseResourcePriceInfoFromJSON(json: any): ProductSearchResponseResourcePriceInfo { return ProductSearchResponseResourcePriceInfoFromJSONTyped(json, false); } export function ProductSearchResponseResourcePriceInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductSearchResponseResourcePriceInfo { if (json == null) { return json; } return { 'minPrice': json['minPrice'], 'maxPrice': json['maxPrice'], 'lowestPrice': json['lowestPrice'], 'highestPrice': json['highestPrice'], }; } export function ProductSearchResponseResourcePriceInfoToJSON(json: any): ProductSearchResponseResourcePriceInfo { return ProductSearchResponseResourcePriceInfoToJSONTyped(json, false); } export function ProductSearchResponseResourcePriceInfoToJSONTyped(value?: ProductSearchResponseResourcePriceInfo | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'minPrice': value['minPrice'], 'maxPrice': value['maxPrice'], 'lowestPrice': value['lowestPrice'], 'highestPrice': value['highestPrice'], }; }