/* 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 { CartListResource } from './CartListResource'; import { CartListResourceFromJSON, CartListResourceFromJSONTyped, CartListResourceToJSON, CartListResourceToJSONTyped, } from './CartListResource'; /** * * @export * @interface PaginatedCartListResourceResponse */ export interface PaginatedCartListResourceResponse { /** * * @type {Array} * @memberof PaginatedCartListResourceResponse */ data: Array; /** * * @type {PagingMetadata} * @memberof PaginatedCartListResourceResponse */ meta: PagingMetadata; } /** * Check if a given object implements the PaginatedCartListResourceResponse interface. */ export function instanceOfPaginatedCartListResourceResponse(value: object): value is PaginatedCartListResourceResponse { if (!('data' in value) || value['data'] === undefined) return false; if (!('meta' in value) || value['meta'] === undefined) return false; return true; } export function PaginatedCartListResourceResponseFromJSON(json: any): PaginatedCartListResourceResponse { return PaginatedCartListResourceResponseFromJSONTyped(json, false); } export function PaginatedCartListResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedCartListResourceResponse { if (json == null) { return json; } return { 'data': ((json['data'] as Array).map(CartListResourceFromJSON)), 'meta': PagingMetadataFromJSON(json['meta']), }; } export function PaginatedCartListResourceResponseToJSON(json: any): PaginatedCartListResourceResponse { return PaginatedCartListResourceResponseToJSONTyped(json, false); } export function PaginatedCartListResourceResponseToJSONTyped(value?: PaginatedCartListResourceResponse | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'data': ((value['data'] as Array).map(CartListResourceToJSON)), 'meta': PagingMetadataToJSON(value['meta']), }; }