/* 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 { AttachAttributesToProductRangeRequestAttributesInner } from './AttachAttributesToProductRangeRequestAttributesInner'; import { AttachAttributesToProductRangeRequestAttributesInnerFromJSON, AttachAttributesToProductRangeRequestAttributesInnerFromJSONTyped, AttachAttributesToProductRangeRequestAttributesInnerToJSON, AttachAttributesToProductRangeRequestAttributesInnerToJSONTyped, } from './AttachAttributesToProductRangeRequestAttributesInner'; /** * * @export * @interface AttachAttributesToProductRangeRequest */ export interface AttachAttributesToProductRangeRequest { /** * * @type {Array} * @memberof AttachAttributesToProductRangeRequest */ attributes: Array; } /** * Check if a given object implements the AttachAttributesToProductRangeRequest interface. */ export function instanceOfAttachAttributesToProductRangeRequest(value: object): value is AttachAttributesToProductRangeRequest { if (!('attributes' in value) || value['attributes'] === undefined) return false; return true; } export function AttachAttributesToProductRangeRequestFromJSON(json: any): AttachAttributesToProductRangeRequest { return AttachAttributesToProductRangeRequestFromJSONTyped(json, false); } export function AttachAttributesToProductRangeRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AttachAttributesToProductRangeRequest { if (json == null) { return json; } return { 'attributes': ((json['attributes'] as Array).map(AttachAttributesToProductRangeRequestAttributesInnerFromJSON)), }; } export function AttachAttributesToProductRangeRequestToJSON(json: any): AttachAttributesToProductRangeRequest { return AttachAttributesToProductRangeRequestToJSONTyped(json, false); } export function AttachAttributesToProductRangeRequestToJSONTyped(value?: AttachAttributesToProductRangeRequest | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'attributes': ((value['attributes'] as Array).map(AttachAttributesToProductRangeRequestAttributesInnerToJSON)), }; }