/* 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 { ProductChildLiteResource } from './ProductChildLiteResource'; import { ProductChildLiteResourceFromJSON, ProductChildLiteResourceFromJSONTyped, ProductChildLiteResourceToJSON, ProductChildLiteResourceToJSONTyped, } from './ProductChildLiteResource'; /** * * @export * @interface PaginatedProductChildLiteResourceResponse */ export interface PaginatedProductChildLiteResourceResponse { /** * * @type {Array} * @memberof PaginatedProductChildLiteResourceResponse */ data: Array; /** * * @type {PagingMetadata} * @memberof PaginatedProductChildLiteResourceResponse */ meta: PagingMetadata; } /** * Check if a given object implements the PaginatedProductChildLiteResourceResponse interface. */ export function instanceOfPaginatedProductChildLiteResourceResponse(value: object): value is PaginatedProductChildLiteResourceResponse { if (!('data' in value) || value['data'] === undefined) return false; if (!('meta' in value) || value['meta'] === undefined) return false; return true; } export function PaginatedProductChildLiteResourceResponseFromJSON(json: any): PaginatedProductChildLiteResourceResponse { return PaginatedProductChildLiteResourceResponseFromJSONTyped(json, false); } export function PaginatedProductChildLiteResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedProductChildLiteResourceResponse { if (json == null) { return json; } return { 'data': ((json['data'] as Array).map(ProductChildLiteResourceFromJSON)), 'meta': PagingMetadataFromJSON(json['meta']), }; } export function PaginatedProductChildLiteResourceResponseToJSON(json: any): PaginatedProductChildLiteResourceResponse { return PaginatedProductChildLiteResourceResponseToJSONTyped(json, false); } export function PaginatedProductChildLiteResourceResponseToJSONTyped(value?: PaginatedProductChildLiteResourceResponse | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'data': ((value['data'] as Array).map(ProductChildLiteResourceToJSON)), 'meta': PagingMetadataToJSON(value['meta']), }; }