/* 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 { CouponResource } from './CouponResource'; import { CouponResourceFromJSON, CouponResourceFromJSONTyped, CouponResourceToJSON, CouponResourceToJSONTyped, } from './CouponResource'; /** * * @export * @interface PaginatedCouponResourceResponse */ export interface PaginatedCouponResourceResponse { /** * * @type {Array} * @memberof PaginatedCouponResourceResponse */ data: Array; /** * * @type {PagingMetadata} * @memberof PaginatedCouponResourceResponse */ meta: PagingMetadata; } /** * Check if a given object implements the PaginatedCouponResourceResponse interface. */ export function instanceOfPaginatedCouponResourceResponse(value: object): value is PaginatedCouponResourceResponse { if (!('data' in value) || value['data'] === undefined) return false; if (!('meta' in value) || value['meta'] === undefined) return false; return true; } export function PaginatedCouponResourceResponseFromJSON(json: any): PaginatedCouponResourceResponse { return PaginatedCouponResourceResponseFromJSONTyped(json, false); } export function PaginatedCouponResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedCouponResourceResponse { if (json == null) { return json; } return { 'data': ((json['data'] as Array).map(CouponResourceFromJSON)), 'meta': PagingMetadataFromJSON(json['meta']), }; } export function PaginatedCouponResourceResponseToJSON(json: any): PaginatedCouponResourceResponse { return PaginatedCouponResourceResponseToJSONTyped(json, false); } export function PaginatedCouponResourceResponseToJSONTyped(value?: PaginatedCouponResourceResponse | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'data': ((value['data'] as Array).map(CouponResourceToJSON)), 'meta': PagingMetadataToJSON(value['meta']), }; }