// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'equipment_history_dto.dart';

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

_$EquipmentHistoryDtoImpl _$$EquipmentHistoryDtoImplFromJson(
        Map<String, dynamic> json) =>
    _$EquipmentHistoryDtoImpl(
      id: (json['id'] as num).toInt(),
      equipmentId: (json['equipmentId'] as num).toInt(),
      transactionType: json['transactionType'] as String,
      quantity: (json['quantity'] as num).toInt(),
      transactionDate: DateTime.parse(json['transactionDate'] as String),
      remarks: json['remarks'] as String?,
      createdBy: (json['createdBy'] as num?)?.toInt(),
      userId: (json['userId'] as num?)?.toInt(),
      createdAt: DateTime.parse(json['createdAt'] as String),
      userName: json['userName'] as String?,
      performedBy: json['performedBy'] as String?,
    );

Map<String, dynamic> _$$EquipmentHistoryDtoImplToJson(
        _$EquipmentHistoryDtoImpl instance) =>
    <String, dynamic>{
      'id': instance.id,
      'equipmentId': instance.equipmentId,
      'transactionType': instance.transactionType,
      'quantity': instance.quantity,
      'transactionDate': instance.transactionDate.toIso8601String(),
      'remarks': instance.remarks,
      'createdBy': instance.createdBy,
      'userId': instance.userId,
      'createdAt': instance.createdAt.toIso8601String(),
      'userName': instance.userName,
      'performedBy': instance.performedBy,
    };

_$CreateHistoryRequestImpl _$$CreateHistoryRequestImplFromJson(
        Map<String, dynamic> json) =>
    _$CreateHistoryRequestImpl(
      transactionType: json['transactionType'] as String,
      quantity: (json['quantity'] as num).toInt(),
      transactionDate: json['transactionDate'] == null
          ? null
          : DateTime.parse(json['transactionDate'] as String),
      remarks: json['remarks'] as String?,
      userId: (json['userId'] as num?)?.toInt(),
    );

Map<String, dynamic> _$$CreateHistoryRequestImplToJson(
        _$CreateHistoryRequestImpl instance) =>
    <String, dynamic>{
      'transactionType': instance.transactionType,
      'quantity': instance.quantity,
      'transactionDate': instance.transactionDate?.toIso8601String(),
      'remarks': instance.remarks,
      'userId': instance.userId,
    };
