/* 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 { DefinitionResource } from './DefinitionResource'; import { DefinitionResourceFromJSON, DefinitionResourceFromJSONTyped, DefinitionResourceToJSON, DefinitionResourceToJSONTyped, } from './DefinitionResource'; /** * * @export * @interface PaginatedDefinitionResourceResponse */ export interface PaginatedDefinitionResourceResponse { /** * * @type {Array} * @memberof PaginatedDefinitionResourceResponse */ data: Array; /** * * @type {PagingMetadata} * @memberof PaginatedDefinitionResourceResponse */ meta: PagingMetadata; } /** * Check if a given object implements the PaginatedDefinitionResourceResponse interface. */ export function instanceOfPaginatedDefinitionResourceResponse(value: object): value is PaginatedDefinitionResourceResponse { if (!('data' in value) || value['data'] === undefined) return false; if (!('meta' in value) || value['meta'] === undefined) return false; return true; } export function PaginatedDefinitionResourceResponseFromJSON(json: any): PaginatedDefinitionResourceResponse { return PaginatedDefinitionResourceResponseFromJSONTyped(json, false); } export function PaginatedDefinitionResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedDefinitionResourceResponse { if (json == null) { return json; } return { 'data': ((json['data'] as Array).map(DefinitionResourceFromJSON)), 'meta': PagingMetadataFromJSON(json['meta']), }; } export function PaginatedDefinitionResourceResponseToJSON(json: any): PaginatedDefinitionResourceResponse { return PaginatedDefinitionResourceResponseToJSONTyped(json, false); } export function PaginatedDefinitionResourceResponseToJSONTyped(value?: PaginatedDefinitionResourceResponse | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'data': ((value['data'] as Array).map(DefinitionResourceToJSON)), 'meta': PagingMetadataToJSON(value['meta']), }; }