/* 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 { AttachDocumentsToProductChildRequestDocumentsInner } from './AttachDocumentsToProductChildRequestDocumentsInner'; import { AttachDocumentsToProductChildRequestDocumentsInnerFromJSON, AttachDocumentsToProductChildRequestDocumentsInnerFromJSONTyped, AttachDocumentsToProductChildRequestDocumentsInnerToJSON, AttachDocumentsToProductChildRequestDocumentsInnerToJSONTyped, } from './AttachDocumentsToProductChildRequestDocumentsInner'; /** * * @export * @interface AttachDocumentsToProductRangeRequest */ export interface AttachDocumentsToProductRangeRequest { /** * * @type {Array} * @memberof AttachDocumentsToProductRangeRequest */ documents: Array; } /** * Check if a given object implements the AttachDocumentsToProductRangeRequest interface. */ export function instanceOfAttachDocumentsToProductRangeRequest(value: object): value is AttachDocumentsToProductRangeRequest { if (!('documents' in value) || value['documents'] === undefined) return false; return true; } export function AttachDocumentsToProductRangeRequestFromJSON(json: any): AttachDocumentsToProductRangeRequest { return AttachDocumentsToProductRangeRequestFromJSONTyped(json, false); } export function AttachDocumentsToProductRangeRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AttachDocumentsToProductRangeRequest { if (json == null) { return json; } return { 'documents': ((json['documents'] as Array).map(AttachDocumentsToProductChildRequestDocumentsInnerFromJSON)), }; } export function AttachDocumentsToProductRangeRequestToJSON(json: any): AttachDocumentsToProductRangeRequest { return AttachDocumentsToProductRangeRequestToJSONTyped(json, false); } export function AttachDocumentsToProductRangeRequestToJSONTyped(value?: AttachDocumentsToProductRangeRequest | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'documents': ((value['documents'] as Array).map(AttachDocumentsToProductChildRequestDocumentsInnerToJSON)), }; }