/* 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 { ProductRangeListResource } from './ProductRangeListResource'; import { ProductRangeListResourceFromJSON, ProductRangeListResourceFromJSONTyped, ProductRangeListResourceToJSON, ProductRangeListResourceToJSONTyped, } from './ProductRangeListResource'; /** * * @export * @interface PaginatedProductRangeListResourceResponse */ export interface PaginatedProductRangeListResourceResponse { /** * * @type {Array} * @memberof PaginatedProductRangeListResourceResponse */ data: Array; /** * * @type {PagingMetadata} * @memberof PaginatedProductRangeListResourceResponse */ meta: PagingMetadata; } /** * Check if a given object implements the PaginatedProductRangeListResourceResponse interface. */ export function instanceOfPaginatedProductRangeListResourceResponse(value: object): value is PaginatedProductRangeListResourceResponse { if (!('data' in value) || value['data'] === undefined) return false; if (!('meta' in value) || value['meta'] === undefined) return false; return true; } export function PaginatedProductRangeListResourceResponseFromJSON(json: any): PaginatedProductRangeListResourceResponse { return PaginatedProductRangeListResourceResponseFromJSONTyped(json, false); } export function PaginatedProductRangeListResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedProductRangeListResourceResponse { if (json == null) { return json; } return { 'data': ((json['data'] as Array).map(ProductRangeListResourceFromJSON)), 'meta': PagingMetadataFromJSON(json['meta']), }; } export function PaginatedProductRangeListResourceResponseToJSON(json: any): PaginatedProductRangeListResourceResponse { return PaginatedProductRangeListResourceResponseToJSONTyped(json, false); } export function PaginatedProductRangeListResourceResponseToJSONTyped(value?: PaginatedProductRangeListResourceResponse | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'data': ((value['data'] as Array).map(ProductRangeListResourceToJSON)), 'meta': PagingMetadataToJSON(value['meta']), }; }