/* 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 { ProductChildAttributeResource } from './ProductChildAttributeResource'; import { ProductChildAttributeResourceFromJSON, ProductChildAttributeResourceFromJSONTyped, ProductChildAttributeResourceToJSON, ProductChildAttributeResourceToJSONTyped, } from './ProductChildAttributeResource'; /** * * @export * @interface ProductChildAttributeGroupedResource */ export interface ProductChildAttributeGroupedResource { /** * * @type {Array} * @memberof ProductChildAttributeGroupedResource */ performance: Array; /** * * @type {Array} * @memberof ProductChildAttributeGroupedResource */ specification: Array; /** * * @type {Array} * @memberof ProductChildAttributeGroupedResource */ dimension: Array; /** * * @type {Array} * @memberof ProductChildAttributeGroupedResource */ other: Array; } /** * Check if a given object implements the ProductChildAttributeGroupedResource interface. */ export function instanceOfProductChildAttributeGroupedResource(value: object): value is ProductChildAttributeGroupedResource { if (!('performance' in value) || value['performance'] === undefined) return false; if (!('specification' in value) || value['specification'] === undefined) return false; if (!('dimension' in value) || value['dimension'] === undefined) return false; if (!('other' in value) || value['other'] === undefined) return false; return true; } export function ProductChildAttributeGroupedResourceFromJSON(json: any): ProductChildAttributeGroupedResource { return ProductChildAttributeGroupedResourceFromJSONTyped(json, false); } export function ProductChildAttributeGroupedResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductChildAttributeGroupedResource { if (json == null) { return json; } return { 'performance': ((json['performance'] as Array).map(ProductChildAttributeResourceFromJSON)), 'specification': ((json['specification'] as Array).map(ProductChildAttributeResourceFromJSON)), 'dimension': ((json['dimension'] as Array).map(ProductChildAttributeResourceFromJSON)), 'other': ((json['other'] as Array).map(ProductChildAttributeResourceFromJSON)), }; } export function ProductChildAttributeGroupedResourceToJSON(json: any): ProductChildAttributeGroupedResource { return ProductChildAttributeGroupedResourceToJSONTyped(json, false); } export function ProductChildAttributeGroupedResourceToJSONTyped(value?: ProductChildAttributeGroupedResource | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'performance': ((value['performance'] as Array).map(ProductChildAttributeResourceToJSON)), 'specification': ((value['specification'] as Array).map(ProductChildAttributeResourceToJSON)), 'dimension': ((value['dimension'] as Array).map(ProductChildAttributeResourceToJSON)), 'other': ((value['other'] as Array).map(ProductChildAttributeResourceToJSON)), }; }