/* 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 { SupplierResource } from './SupplierResource'; import { SupplierResourceFromJSON, SupplierResourceFromJSONTyped, SupplierResourceToJSON, SupplierResourceToJSONTyped, } from './SupplierResource'; /** * * @export * @interface PaginatedSupplierResourceResponse */ export interface PaginatedSupplierResourceResponse { /** * * @type {Array} * @memberof PaginatedSupplierResourceResponse */ data: Array; /** * * @type {PagingMetadata} * @memberof PaginatedSupplierResourceResponse */ meta: PagingMetadata; } /** * Check if a given object implements the PaginatedSupplierResourceResponse interface. */ export function instanceOfPaginatedSupplierResourceResponse(value: object): value is PaginatedSupplierResourceResponse { if (!('data' in value) || value['data'] === undefined) return false; if (!('meta' in value) || value['meta'] === undefined) return false; return true; } export function PaginatedSupplierResourceResponseFromJSON(json: any): PaginatedSupplierResourceResponse { return PaginatedSupplierResourceResponseFromJSONTyped(json, false); } export function PaginatedSupplierResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedSupplierResourceResponse { if (json == null) { return json; } return { 'data': ((json['data'] as Array).map(SupplierResourceFromJSON)), 'meta': PagingMetadataFromJSON(json['meta']), }; } export function PaginatedSupplierResourceResponseToJSON(json: any): PaginatedSupplierResourceResponse { return PaginatedSupplierResourceResponseToJSONTyped(json, false); } export function PaginatedSupplierResourceResponseToJSONTyped(value?: PaginatedSupplierResourceResponse | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'data': ((value['data'] as Array).map(SupplierResourceToJSON)), 'meta': PagingMetadataToJSON(value['meta']), }; }