/* 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 { PageResource } from './PageResource'; import { PageResourceFromJSON, PageResourceFromJSONTyped, PageResourceToJSON, PageResourceToJSONTyped, } from './PageResource'; import type { PagingMetadata } from './PagingMetadata'; import { PagingMetadataFromJSON, PagingMetadataFromJSONTyped, PagingMetadataToJSON, PagingMetadataToJSONTyped, } from './PagingMetadata'; /** * * @export * @interface PaginatedPageResourceResponse */ export interface PaginatedPageResourceResponse { /** * * @type {Array} * @memberof PaginatedPageResourceResponse */ data: Array; /** * * @type {PagingMetadata} * @memberof PaginatedPageResourceResponse */ meta: PagingMetadata; } /** * Check if a given object implements the PaginatedPageResourceResponse interface. */ export function instanceOfPaginatedPageResourceResponse(value: object): value is PaginatedPageResourceResponse { if (!('data' in value) || value['data'] === undefined) return false; if (!('meta' in value) || value['meta'] === undefined) return false; return true; } export function PaginatedPageResourceResponseFromJSON(json: any): PaginatedPageResourceResponse { return PaginatedPageResourceResponseFromJSONTyped(json, false); } export function PaginatedPageResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedPageResourceResponse { if (json == null) { return json; } return { 'data': ((json['data'] as Array).map(PageResourceFromJSON)), 'meta': PagingMetadataFromJSON(json['meta']), }; } export function PaginatedPageResourceResponseToJSON(json: any): PaginatedPageResourceResponse { return PaginatedPageResourceResponseToJSONTyped(json, false); } export function PaginatedPageResourceResponseToJSONTyped(value?: PaginatedPageResourceResponse | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'data': ((value['data'] as Array).map(PageResourceToJSON)), 'meta': PagingMetadataToJSON(value['meta']), }; }