class PpmCalibrationTools {
  PpmCalibrationTools({
    this.id,
    this.visitId,
    this.assetId,
    this.calibrationDateOfTesters,
    this.assetSerialNo,
    this.assetName,
    this.assetNumber,
  });

  PpmCalibrationTools.fromJson(dynamic json) {
    id = json['id'];
    visitId = json['visitId'];
    assetId = json['assetId'];
    calibrationDateOfTesters = json['calibrationDateOfTesters'];
    assetSerialNo = json['assetSerialNo'];
    assetName = json['assetName'];
    assetNumber = json['assetNumber'];
  }

  num? id; // Now nullable
  num? visitId; // Now nullable
  num? assetId; // Now nullable
  String? calibrationDateOfTesters; // Now nullable
  String? assetSerialNo; // Now nullable
  String? assetName; //Now nullable
  String? assetNumber; // Now nullable

  PpmCalibrationTools copyWith({
    num? id,
    num? visitId,
    num? assetId,
    String? calibrationDateOfTesters,
    String? assetSerialNo,
    String? assetName,
    String? assetNumber,
  }) =>
      PpmCalibrationTools(
        id: id ?? this.id,
        visitId: visitId ?? this.visitId,
        assetId: assetId ?? this.assetId,
        calibrationDateOfTesters: calibrationDateOfTesters ?? this.calibrationDateOfTesters,
        assetSerialNo: assetSerialNo ?? this.assetSerialNo,
        assetName: assetName ?? this.assetName,
        assetNumber: assetNumber ?? this.assetNumber,
      );

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['id'] = id;
    map['visitId'] = visitId;
    map['assetId'] = assetId;
    map['calibrationDateOfTesters'] = calibrationDateOfTesters;
    map['assetSerialNo'] = assetSerialNo;
    map['assetName'] = assetName;
    map['assetNumber'] = assetNumber;
    return map;
  }
}
