/* 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 { ProductRangeResource } from './ProductRangeResource'; import { ProductRangeResourceFromJSON, ProductRangeResourceFromJSONTyped, ProductRangeResourceToJSON, ProductRangeResourceToJSONTyped, } from './ProductRangeResource'; /** * * @export * @interface PaginatedProductRangeResourceResponse */ export interface PaginatedProductRangeResourceResponse { /** * * @type {Array} * @memberof PaginatedProductRangeResourceResponse */ data: Array; /** * * @type {PagingMetadata} * @memberof PaginatedProductRangeResourceResponse */ meta: PagingMetadata; } /** * Check if a given object implements the PaginatedProductRangeResourceResponse interface. */ export function instanceOfPaginatedProductRangeResourceResponse(value: object): value is PaginatedProductRangeResourceResponse { if (!('data' in value) || value['data'] === undefined) return false; if (!('meta' in value) || value['meta'] === undefined) return false; return true; } export function PaginatedProductRangeResourceResponseFromJSON(json: any): PaginatedProductRangeResourceResponse { return PaginatedProductRangeResourceResponseFromJSONTyped(json, false); } export function PaginatedProductRangeResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedProductRangeResourceResponse { if (json == null) { return json; } return { 'data': ((json['data'] as Array).map(ProductRangeResourceFromJSON)), 'meta': PagingMetadataFromJSON(json['meta']), }; } export function PaginatedProductRangeResourceResponseToJSON(json: any): PaginatedProductRangeResourceResponse { return PaginatedProductRangeResourceResponseToJSONTyped(json, false); } export function PaginatedProductRangeResourceResponseToJSONTyped(value?: PaginatedProductRangeResourceResponse | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'data': ((value['data'] as Array).map(ProductRangeResourceToJSON)), 'meta': PagingMetadataToJSON(value['meta']), }; }