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