/* 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 { PagingMetadata } from './PagingMetadata'; import { PagingMetadataFromJSON, PagingMetadataFromJSONTyped, PagingMetadataToJSON, PagingMetadataToJSONTyped, } from './PagingMetadata'; import type { ProductRangeSearchResultResource } from './ProductRangeSearchResultResource'; import { ProductRangeSearchResultResourceFromJSON, ProductRangeSearchResultResourceFromJSONTyped, ProductRangeSearchResultResourceToJSON, ProductRangeSearchResultResourceToJSONTyped, } from './ProductRangeSearchResultResource'; /** * * @export * @interface PaginatedProductRangeSearchResultResourceResponse */ export interface PaginatedProductRangeSearchResultResourceResponse { /** * * @type {Array} * @memberof PaginatedProductRangeSearchResultResourceResponse */ data: Array; /** * * @type {PagingMetadata} * @memberof PaginatedProductRangeSearchResultResourceResponse */ meta: PagingMetadata; } /** * Check if a given object implements the PaginatedProductRangeSearchResultResourceResponse interface. */ export function instanceOfPaginatedProductRangeSearchResultResourceResponse(value: object): value is PaginatedProductRangeSearchResultResourceResponse { if (!('data' in value) || value['data'] === undefined) return false; if (!('meta' in value) || value['meta'] === undefined) return false; return true; } export function PaginatedProductRangeSearchResultResourceResponseFromJSON(json: any): PaginatedProductRangeSearchResultResourceResponse { return PaginatedProductRangeSearchResultResourceResponseFromJSONTyped(json, false); } export function PaginatedProductRangeSearchResultResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedProductRangeSearchResultResourceResponse { if (json == null) { return json; } return { 'data': ((json['data'] as Array).map(ProductRangeSearchResultResourceFromJSON)), 'meta': PagingMetadataFromJSON(json['meta']), }; } export function PaginatedProductRangeSearchResultResourceResponseToJSON(json: any): PaginatedProductRangeSearchResultResourceResponse { return PaginatedProductRangeSearchResultResourceResponseToJSONTyped(json, false); } export function PaginatedProductRangeSearchResultResourceResponseToJSONTyped(value?: PaginatedProductRangeSearchResultResourceResponse | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'data': ((value['data'] as Array).map(ProductRangeSearchResultResourceToJSON)), 'meta': PagingMetadataToJSON(value['meta']), }; }