/* 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 { TransactionResource } from './TransactionResource'; import { TransactionResourceFromJSON, TransactionResourceFromJSONTyped, TransactionResourceToJSON, TransactionResourceToJSONTyped, } from './TransactionResource'; /** * * @export * @interface PaginatedTransactionResourceResponse */ export interface PaginatedTransactionResourceResponse { /** * * @type {Array} * @memberof PaginatedTransactionResourceResponse */ data: Array; /** * * @type {PagingMetadata} * @memberof PaginatedTransactionResourceResponse */ meta: PagingMetadata; } /** * Check if a given object implements the PaginatedTransactionResourceResponse interface. */ export function instanceOfPaginatedTransactionResourceResponse(value: object): value is PaginatedTransactionResourceResponse { if (!('data' in value) || value['data'] === undefined) return false; if (!('meta' in value) || value['meta'] === undefined) return false; return true; } export function PaginatedTransactionResourceResponseFromJSON(json: any): PaginatedTransactionResourceResponse { return PaginatedTransactionResourceResponseFromJSONTyped(json, false); } export function PaginatedTransactionResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedTransactionResourceResponse { if (json == null) { return json; } return { 'data': ((json['data'] as Array).map(TransactionResourceFromJSON)), 'meta': PagingMetadataFromJSON(json['meta']), }; } export function PaginatedTransactionResourceResponseToJSON(json: any): PaginatedTransactionResourceResponse { return PaginatedTransactionResourceResponseToJSONTyped(json, false); } export function PaginatedTransactionResourceResponseToJSONTyped(value?: PaginatedTransactionResourceResponse | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'data': ((value['data'] as Array).map(TransactionResourceToJSON)), 'meta': PagingMetadataToJSON(value['meta']), }; }