/* 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 AttachAttributesToProductRangeRequestAttributesInner */ export interface AttachAttributesToProductRangeRequestAttributesInner { /** * * @type {number} * @memberof AttachAttributesToProductRangeRequestAttributesInner */ attributeId: number; /** * * @type {number} * @memberof AttachAttributesToProductRangeRequestAttributesInner */ order?: number; } /** * Check if a given object implements the AttachAttributesToProductRangeRequestAttributesInner interface. */ export function instanceOfAttachAttributesToProductRangeRequestAttributesInner(value: object): value is AttachAttributesToProductRangeRequestAttributesInner { if (!('attributeId' in value) || value['attributeId'] === undefined) return false; return true; } export function AttachAttributesToProductRangeRequestAttributesInnerFromJSON(json: any): AttachAttributesToProductRangeRequestAttributesInner { return AttachAttributesToProductRangeRequestAttributesInnerFromJSONTyped(json, false); } export function AttachAttributesToProductRangeRequestAttributesInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): AttachAttributesToProductRangeRequestAttributesInner { if (json == null) { return json; } return { 'attributeId': json['attribute_id'], 'order': json['order'] == null ? undefined : json['order'], }; } export function AttachAttributesToProductRangeRequestAttributesInnerToJSON(json: any): AttachAttributesToProductRangeRequestAttributesInner { return AttachAttributesToProductRangeRequestAttributesInnerToJSONTyped(json, false); } export function AttachAttributesToProductRangeRequestAttributesInnerToJSONTyped(value?: AttachAttributesToProductRangeRequestAttributesInner | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'attribute_id': value['attributeId'], 'order': value['order'], }; }