import 'package:freezed_annotation/freezed_annotation.dart';

part 'equipment_io_response.freezed.dart';
part 'equipment_io_response.g.dart';

@freezed
class EquipmentIoResponse with _$EquipmentIoResponse {
  const factory EquipmentIoResponse({
    required bool success,
    required String message,
    required int transactionId,
    required int equipmentId,
    required int quantity,
    required String transactionType,
    required DateTime transactionDate,
  }) = _EquipmentIoResponse;

  factory EquipmentIoResponse.fromJson(Map<String, dynamic> json) =>
      _$EquipmentIoResponseFromJson(json);
}