/* 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 { SupplierResource } from './SupplierResource'; import { SupplierResourceFromJSON, SupplierResourceFromJSONTyped, SupplierResourceToJSON, SupplierResourceToJSONTyped, } from './SupplierResource'; /** * * @export * @interface SupplierResourceArrayResponse */ export interface SupplierResourceArrayResponse { /** * * @type {Array} * @memberof SupplierResourceArrayResponse */ data?: Array; } /** * Check if a given object implements the SupplierResourceArrayResponse interface. */ export function instanceOfSupplierResourceArrayResponse(value: object): value is SupplierResourceArrayResponse { return true; } export function SupplierResourceArrayResponseFromJSON(json: any): SupplierResourceArrayResponse { return SupplierResourceArrayResponseFromJSONTyped(json, false); } export function SupplierResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupplierResourceArrayResponse { if (json == null) { return json; } return { 'data': json['data'] == null ? undefined : ((json['data'] as Array).map(SupplierResourceFromJSON)), }; } export function SupplierResourceArrayResponseToJSON(json: any): SupplierResourceArrayResponse { return SupplierResourceArrayResponseToJSONTyped(json, false); } export function SupplierResourceArrayResponseToJSONTyped(value?: SupplierResourceArrayResponse | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'data': value['data'] == null ? undefined : ((value['data'] as Array).map(SupplierResourceToJSON)), }; }