/* 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 { GlobalSearchProductResource } from './GlobalSearchProductResource'; import { GlobalSearchProductResourceFromJSON, GlobalSearchProductResourceFromJSONTyped, GlobalSearchProductResourceToJSON, GlobalSearchProductResourceToJSONTyped, } from './GlobalSearchProductResource'; /** * * @export * @interface GlobalSearchProductResourceArrayResponse */ export interface GlobalSearchProductResourceArrayResponse { /** * * @type {Array} * @memberof GlobalSearchProductResourceArrayResponse */ data?: Array; } /** * Check if a given object implements the GlobalSearchProductResourceArrayResponse interface. */ export function instanceOfGlobalSearchProductResourceArrayResponse(value: object): value is GlobalSearchProductResourceArrayResponse { return true; } export function GlobalSearchProductResourceArrayResponseFromJSON(json: any): GlobalSearchProductResourceArrayResponse { return GlobalSearchProductResourceArrayResponseFromJSONTyped(json, false); } export function GlobalSearchProductResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GlobalSearchProductResourceArrayResponse { if (json == null) { return json; } return { 'data': json['data'] == null ? undefined : ((json['data'] as Array).map(GlobalSearchProductResourceFromJSON)), }; } export function GlobalSearchProductResourceArrayResponseToJSON(json: any): GlobalSearchProductResourceArrayResponse { return GlobalSearchProductResourceArrayResponseToJSONTyped(json, false); } export function GlobalSearchProductResourceArrayResponseToJSONTyped(value?: GlobalSearchProductResourceArrayResponse | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'data': value['data'] == null ? undefined : ((value['data'] as Array).map(GlobalSearchProductResourceToJSON)), }; }