/* 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'; /** * * @export * @interface AttachProductsToProductCategoryRequest */ export interface AttachProductsToProductCategoryRequest { /** * * @type {Array} * @memberof AttachProductsToProductCategoryRequest */ productChildIds: Array; } /** * Check if a given object implements the AttachProductsToProductCategoryRequest interface. */ export function instanceOfAttachProductsToProductCategoryRequest(value: object): value is AttachProductsToProductCategoryRequest { if (!('productChildIds' in value) || value['productChildIds'] === undefined) return false; return true; } export function AttachProductsToProductCategoryRequestFromJSON(json: any): AttachProductsToProductCategoryRequest { return AttachProductsToProductCategoryRequestFromJSONTyped(json, false); } export function AttachProductsToProductCategoryRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AttachProductsToProductCategoryRequest { if (json == null) { return json; } return { 'productChildIds': json['product_child_ids'], }; } export function AttachProductsToProductCategoryRequestToJSON(json: any): AttachProductsToProductCategoryRequest { return AttachProductsToProductCategoryRequestToJSONTyped(json, false); } export function AttachProductsToProductCategoryRequestToJSONTyped(value?: AttachProductsToProductCategoryRequest | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'product_child_ids': value['productChildIds'], }; }