// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'article.dart';

// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************

ArticleDTO _$ArticleDTOFromJson(Map<String, dynamic> json) => ArticleDTO(
  name: json['name'] as String,
  articleNr: json['article_nr'] as String,
  quantity: json['quantity'] as String,
  price: json['price'] as String,
  scannable: json['scannable'] as bool,
  internalId: json['internal_id'] as String,
  scannedRemovedAmount: json['scanned_removed_amount'] as String,
  scannedAmount: json['scanned_amount'] as String,
  removeNoteId: json['remove_note_id'] as String?,
  taxRate: json['tax_rate'] as String,
  isParent: json['is_parent'] as bool,
  components:
      (json['components'] as List<dynamic>?)
          ?.map((e) => ComponentDTO.fromJson(e as Map<String, dynamic>))
          .toList(),
  warehouseNr: json['warehouse_nr'] as String?,
  warehouseName: json['warehouse_name'] as String?,
);

Map<String, dynamic> _$ArticleDTOToJson(ArticleDTO instance) =>
    <String, dynamic>{
      'name': instance.name,
      'article_nr': instance.articleNr,
      'quantity': instance.quantity,
      'price': instance.price,
      'tax_rate': instance.taxRate,
      'internal_id': instance.internalId,
      'scanned_amount': instance.scannedAmount,
      'scanned_removed_amount': instance.scannedRemovedAmount,
      'remove_note_id': instance.removeNoteId,
      'scannable': instance.scannable,
      'is_parent': instance.isParent,
      'components': instance.components,
      'warehouse_nr': instance.warehouseNr,
      'warehouse_name': instance.warehouseName,
    };
