// 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['equipment_id'] as num).toInt(),
      transactionType: json['transaction_type'] as String,
      quantity: (json['quantity'] as num).toInt(),
      transactionDate: DateTime.parse(json['transaction_date'] as String),
      remarks: json['remarks'] as String?,
      createdBy: (json['created_by'] as num?)?.toInt(),
      userId: (json['user_id'] as num?)?.toInt(),
      createdAt: DateTime.parse(json['created_at'] as String),
      userName: json['user_name'] as String?,
      performedBy: json['performed_by'] as String?,
    );

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

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

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