/* 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 { CouponResource } from './CouponResource'; import { CouponResourceFromJSON, CouponResourceFromJSONTyped, CouponResourceToJSON, CouponResourceToJSONTyped, } from './CouponResource'; /** * * @export * @interface CouponResourceArrayResponse */ export interface CouponResourceArrayResponse { /** * * @type {Array} * @memberof CouponResourceArrayResponse */ data?: Array; } /** * Check if a given object implements the CouponResourceArrayResponse interface. */ export function instanceOfCouponResourceArrayResponse(value: object): value is CouponResourceArrayResponse { return true; } export function CouponResourceArrayResponseFromJSON(json: any): CouponResourceArrayResponse { return CouponResourceArrayResponseFromJSONTyped(json, false); } export function CouponResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CouponResourceArrayResponse { if (json == null) { return json; } return { 'data': json['data'] == null ? undefined : ((json['data'] as Array).map(CouponResourceFromJSON)), }; } export function CouponResourceArrayResponseToJSON(json: any): CouponResourceArrayResponse { return CouponResourceArrayResponseToJSONTyped(json, false); } export function CouponResourceArrayResponseToJSONTyped(value?: CouponResourceArrayResponse | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'data': value['data'] == null ? undefined : ((value['data'] as Array).map(CouponResourceToJSON)), }; }