/* 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 { StoreListResource } from './StoreListResource'; import { StoreListResourceFromJSON, StoreListResourceFromJSONTyped, StoreListResourceToJSON, StoreListResourceToJSONTyped, } from './StoreListResource'; /** * * @export * @interface PaginatedStoreListResourceResponse */ export interface PaginatedStoreListResourceResponse { /** * * @type {Array} * @memberof PaginatedStoreListResourceResponse */ data: Array; /** * * @type {PagingMetadata} * @memberof PaginatedStoreListResourceResponse */ meta: PagingMetadata; } /** * Check if a given object implements the PaginatedStoreListResourceResponse interface. */ export function instanceOfPaginatedStoreListResourceResponse(value: object): value is PaginatedStoreListResourceResponse { if (!('data' in value) || value['data'] === undefined) return false; if (!('meta' in value) || value['meta'] === undefined) return false; return true; } export function PaginatedStoreListResourceResponseFromJSON(json: any): PaginatedStoreListResourceResponse { return PaginatedStoreListResourceResponseFromJSONTyped(json, false); } export function PaginatedStoreListResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedStoreListResourceResponse { if (json == null) { return json; } return { 'data': ((json['data'] as Array).map(StoreListResourceFromJSON)), 'meta': PagingMetadataFromJSON(json['meta']), }; } export function PaginatedStoreListResourceResponseToJSON(json: any): PaginatedStoreListResourceResponse { return PaginatedStoreListResourceResponseToJSONTyped(json, false); } export function PaginatedStoreListResourceResponseToJSONTyped(value?: PaginatedStoreListResourceResponse | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'data': ((value['data'] as Array).map(StoreListResourceToJSON)), 'meta': PagingMetadataToJSON(value['meta']), }; }