class PpmChecklists {
  PpmChecklists({
    this.id,
    this.visitId,
    this.task,
    this.taskStatusId,
    this.taskComment,
    this.measuredValue,
    this.taskStatusName,
    this.instructionTextId,
    this.text,
  });

  PpmChecklists.fromJson(dynamic json) {
    id = json['id'];
    visitId = json['visitId'];
    task = json['task'];
    taskStatusId = json['taskStatusId'];
    taskStatusName = json['taskStatusName'];
    taskComment = json['taskComment'];
    measuredValue = json['measuredValue'];
    instructionTextId = json['instructionTextId'];
    text = json['text'];
  }

  num? id;
  num? visitId;
  String? task;
  num? taskStatusId;
  String? taskComment;
  String? measuredValue;
  String? taskStatusName;
  num? instructionTextId;
  String? text;

  PpmChecklists copyWith({
    num? id,
    num? visitId,
    String? task,
    num? taskStatusId,
    String? taskComment,
    String? measuredValue,
    String? taskStatusName,
    num? instructionTextId,
    String? text,
  }) =>
      PpmChecklists(
        id: id ?? this.id,
        visitId: visitId ?? this.visitId,
        task: task ?? this.task,
        taskStatusId: taskStatusId ?? this.taskStatusId,
        taskComment: taskComment ?? this.taskComment,
        measuredValue: measuredValue ?? this.measuredValue,
        taskStatusName: taskStatusName ?? this.taskStatusName,
        instructionTextId: instructionTextId ?? this.instructionTextId,
        text: text ?? this.text,
      );

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['id'] = id;
    map['visitId'] = visitId;
    map['task'] = task;
    map['taskStatusId'] = taskStatusId;
    map['taskComment'] = taskComment;
    map['measuredValue'] = measuredValue;
    map['taskStatusName'] = taskStatusName;
    map['instructionTextId'] = instructionTextId;
    map['text'] = text;
    return map;
  }
}
