// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'stock_status_dto.dart';

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

_$StockStatusDtoImpl _$$StockStatusDtoImplFromJson(Map<String, dynamic> json) =>
    _$StockStatusDtoImpl(
      equipmentId: (json['equipment_id'] as num).toInt(),
      warehouseId: (json['warehouse_id'] as num).toInt(),
      equipmentSerial: json['equipment_serial'] as String,
      modelName: json['model_name'] as String?,
      warehouseName: json['warehouse_name'] as String,
      currentQuantity: (json['current_quantity'] as num).toInt(),
      lastTransactionDate: json['last_transaction_date'] == null
          ? null
          : DateTime.parse(json['last_transaction_date'] as String),
    );

Map<String, dynamic> _$$StockStatusDtoImplToJson(
        _$StockStatusDtoImpl instance) =>
    <String, dynamic>{
      'equipment_id': instance.equipmentId,
      'warehouse_id': instance.warehouseId,
      'equipment_serial': instance.equipmentSerial,
      'model_name': instance.modelName,
      'warehouse_name': instance.warehouseName,
      'current_quantity': instance.currentQuantity,
      'last_transaction_date': instance.lastTransactionDate?.toIso8601String(),
    };

_$StockStatusListResponseImpl _$$StockStatusListResponseImplFromJson(
        Map<String, dynamic> json) =>
    _$StockStatusListResponseImpl(
      items: (json['items'] as List<dynamic>)
          .map((e) => StockStatusDto.fromJson(e as Map<String, dynamic>))
          .toList(),
    );

Map<String, dynamic> _$$StockStatusListResponseImplToJson(
        _$StockStatusListResponseImpl instance) =>
    <String, dynamic>{
      'items': instance.items,
    };
