// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'equipment_request.dart';

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

_$CreateEquipmentRequestImpl _$$CreateEquipmentRequestImplFromJson(
        Map<String, dynamic> json) =>
    _$CreateEquipmentRequestImpl(
      equipmentNumber: json['equipment_number'] as String,
      category1: json['category1'] as String?,
      category2: json['category2'] as String?,
      category3: json['category3'] as String?,
      manufacturer: json['manufacturer'] as String,
      modelName: json['model_name'] as String?,
      serialNumber: json['serial_number'] as String?,
      barcode: json['barcode'] as String?,
      purchaseDate:
          const NaiveDateConverter().fromJson(json['purchase_date'] as String?),
      purchasePrice: const DecimalConverter().fromJson(json['purchase_price']),
      companyId: (json['company_id'] as num?)?.toInt(),
      warehouseLocationId: (json['warehouse_location_id'] as num?)?.toInt(),
      lastInspectionDate: const NaiveDateConverter()
          .fromJson(json['last_inspection_date'] as String?),
      nextInspectionDate: const NaiveDateConverter()
          .fromJson(json['next_inspection_date'] as String?),
      remark: json['remark'] as String?,
    );

Map<String, dynamic> _$$CreateEquipmentRequestImplToJson(
        _$CreateEquipmentRequestImpl instance) =>
    <String, dynamic>{
      'equipment_number': instance.equipmentNumber,
      'category1': instance.category1,
      'category2': instance.category2,
      'category3': instance.category3,
      'manufacturer': instance.manufacturer,
      'model_name': instance.modelName,
      'serial_number': instance.serialNumber,
      'barcode': instance.barcode,
      'purchase_date': const NaiveDateConverter().toJson(instance.purchaseDate),
      'purchase_price': const DecimalConverter().toJson(instance.purchasePrice),
      'company_id': instance.companyId,
      'warehouse_location_id': instance.warehouseLocationId,
      'last_inspection_date':
          const NaiveDateConverter().toJson(instance.lastInspectionDate),
      'next_inspection_date':
          const NaiveDateConverter().toJson(instance.nextInspectionDate),
      'remark': instance.remark,
    };

_$UpdateEquipmentRequestImpl _$$UpdateEquipmentRequestImplFromJson(
        Map<String, dynamic> json) =>
    _$UpdateEquipmentRequestImpl(
      category1: json['category1'] as String?,
      category2: json['category2'] as String?,
      category3: json['category3'] as String?,
      manufacturer: json['manufacturer'] as String?,
      modelName: json['model_name'] as String?,
      serialNumber: json['serial_number'] as String?,
      barcode: json['barcode'] as String?,
      purchaseDate:
          const NaiveDateConverter().fromJson(json['purchase_date'] as String?),
      purchasePrice: const DecimalConverter().fromJson(json['purchase_price']),
      status: json['status'] as String?,
      companyId: (json['company_id'] as num?)?.toInt(),
      warehouseLocationId: (json['warehouse_location_id'] as num?)?.toInt(),
      lastInspectionDate: const NaiveDateConverter()
          .fromJson(json['last_inspection_date'] as String?),
      nextInspectionDate: const NaiveDateConverter()
          .fromJson(json['next_inspection_date'] as String?),
      remark: json['remark'] as String?,
    );

Map<String, dynamic> _$$UpdateEquipmentRequestImplToJson(
        _$UpdateEquipmentRequestImpl instance) =>
    <String, dynamic>{
      if (instance.category1 case final value?) 'category1': value,
      if (instance.category2 case final value?) 'category2': value,
      if (instance.category3 case final value?) 'category3': value,
      if (instance.manufacturer case final value?) 'manufacturer': value,
      if (instance.modelName case final value?) 'model_name': value,
      if (instance.serialNumber case final value?) 'serial_number': value,
      if (instance.barcode case final value?) 'barcode': value,
      if (const NaiveDateConverter().toJson(instance.purchaseDate)
          case final value?)
        'purchase_date': value,
      if (const DecimalConverter().toJson(instance.purchasePrice)
          case final value?)
        'purchase_price': value,
      if (instance.status case final value?) 'status': value,
      if (instance.companyId case final value?) 'company_id': value,
      if (instance.warehouseLocationId case final value?)
        'warehouse_location_id': value,
      if (const NaiveDateConverter().toJson(instance.lastInspectionDate)
          case final value?)
        'last_inspection_date': value,
      if (const NaiveDateConverter().toJson(instance.nextInspectionDate)
          case final value?)
        'next_inspection_date': value,
      if (instance.remark case final value?) 'remark': value,
    };
