/* 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 AttachLineItemRequest */ export interface AttachLineItemRequest { /** * * @type {number} * @memberof AttachLineItemRequest */ productChildId: number; /** * * @type {number} * @memberof AttachLineItemRequest */ quantity: number; /** * * @type {number} * @memberof AttachLineItemRequest */ productPrice?: number | null; } /** * Check if a given object implements the AttachLineItemRequest interface. */ export function instanceOfAttachLineItemRequest(value: object): value is AttachLineItemRequest { if (!('productChildId' in value) || value['productChildId'] === undefined) return false; if (!('quantity' in value) || value['quantity'] === undefined) return false; return true; } export function AttachLineItemRequestFromJSON(json: any): AttachLineItemRequest { return AttachLineItemRequestFromJSONTyped(json, false); } export function AttachLineItemRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AttachLineItemRequest { if (json == null) { return json; } return { 'productChildId': json['product_child_id'], 'quantity': json['quantity'], 'productPrice': json['product_price'] == null ? undefined : json['product_price'], }; } export function AttachLineItemRequestToJSON(json: any): AttachLineItemRequest { return AttachLineItemRequestToJSONTyped(json, false); } export function AttachLineItemRequestToJSONTyped(value?: AttachLineItemRequest | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'product_child_id': value['productChildId'], 'quantity': value['quantity'], 'product_price': value['productPrice'], }; }