class MarineManualSondeCalibrationData {
  int? calibratedByUserId;
  String? sondeId;
  String? calibrationDateTime;

  // pH values
  double? ph4Initial;
  double? ph4Calibrated;
  double? ph7Initial;
  double? ph7Calibrated;
  double? ph10Initial;
  double? ph10Calibrated;

  // Other parameters
  double? condInitial;
  double? condCalibrated;
  double? doInitial;
  double? doCalibrated;
  double? turbidityInitial;
  double? turbidityCalibrated;

  String? calibrationStatus;
  String? remarks;

  Map<String, dynamic> toApiFormData() {
    return {
      'calibrated_by_user_id': calibratedByUserId.toString(),
      'sonde_id': sondeId,
      'calibration_datetime': calibrationDateTime,
      'ph_4_initial': ph4Initial?.toString(),
      'ph_4_calibrated': ph4Calibrated?.toString(),
      'ph_7_initial': ph7Initial?.toString(),
      'ph_7_calibrated': ph7Calibrated?.toString(),
      'ph_10_initial': ph10Initial?.toString(),
      'ph_10_calibrated': ph10Calibrated?.toString(),
      'cond_initial': condInitial?.toString(),
      'cond_calibrated': condCalibrated?.toString(),
      'do_initial': doInitial?.toString(),
      'do_calibrated': doCalibrated?.toString(),
      'turbidity_initial': turbidityInitial?.toString(),
      'turbidity_calibrated': turbidityCalibrated?.toString(),
      'calibration_status': calibrationStatus,
      'remarks': remarks,
    };
  }
}