/* 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 { CustomerListResource } from './CustomerListResource'; import { CustomerListResourceFromJSON, CustomerListResourceFromJSONTyped, CustomerListResourceToJSON, CustomerListResourceToJSONTyped, } from './CustomerListResource'; /** * * @export * @interface PaginatedCustomerListResourceResponse */ export interface PaginatedCustomerListResourceResponse { /** * * @type {Array} * @memberof PaginatedCustomerListResourceResponse */ data: Array; /** * * @type {PagingMetadata} * @memberof PaginatedCustomerListResourceResponse */ meta: PagingMetadata; } /** * Check if a given object implements the PaginatedCustomerListResourceResponse interface. */ export function instanceOfPaginatedCustomerListResourceResponse(value: object): value is PaginatedCustomerListResourceResponse { if (!('data' in value) || value['data'] === undefined) return false; if (!('meta' in value) || value['meta'] === undefined) return false; return true; } export function PaginatedCustomerListResourceResponseFromJSON(json: any): PaginatedCustomerListResourceResponse { return PaginatedCustomerListResourceResponseFromJSONTyped(json, false); } export function PaginatedCustomerListResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedCustomerListResourceResponse { if (json == null) { return json; } return { 'data': ((json['data'] as Array).map(CustomerListResourceFromJSON)), 'meta': PagingMetadataFromJSON(json['meta']), }; } export function PaginatedCustomerListResourceResponseToJSON(json: any): PaginatedCustomerListResourceResponse { return PaginatedCustomerListResourceResponseToJSONTyped(json, false); } export function PaginatedCustomerListResourceResponseToJSONTyped(value?: PaginatedCustomerListResourceResponse | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'data': ((value['data'] as Array).map(CustomerListResourceToJSON)), 'meta': PagingMetadataToJSON(value['meta']), }; }