/* 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 { DocumentResource } from './DocumentResource'; import { DocumentResourceFromJSON, DocumentResourceFromJSONTyped, DocumentResourceToJSON, DocumentResourceToJSONTyped, } from './DocumentResource'; /** * * @export * @interface PaginatedDocumentResourceResponse */ export interface PaginatedDocumentResourceResponse { /** * * @type {Array} * @memberof PaginatedDocumentResourceResponse */ data: Array; /** * * @type {PagingMetadata} * @memberof PaginatedDocumentResourceResponse */ meta: PagingMetadata; } /** * Check if a given object implements the PaginatedDocumentResourceResponse interface. */ export function instanceOfPaginatedDocumentResourceResponse(value: object): value is PaginatedDocumentResourceResponse { if (!('data' in value) || value['data'] === undefined) return false; if (!('meta' in value) || value['meta'] === undefined) return false; return true; } export function PaginatedDocumentResourceResponseFromJSON(json: any): PaginatedDocumentResourceResponse { return PaginatedDocumentResourceResponseFromJSONTyped(json, false); } export function PaginatedDocumentResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedDocumentResourceResponse { if (json == null) { return json; } return { 'data': ((json['data'] as Array).map(DocumentResourceFromJSON)), 'meta': PagingMetadataFromJSON(json['meta']), }; } export function PaginatedDocumentResourceResponseToJSON(json: any): PaginatedDocumentResourceResponse { return PaginatedDocumentResourceResponseToJSONTyped(json, false); } export function PaginatedDocumentResourceResponseToJSONTyped(value?: PaginatedDocumentResourceResponse | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'data': ((value['data'] as Array).map(DocumentResourceToJSON)), 'meta': PagingMetadataToJSON(value['meta']), }; }