You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
cloudsolutions-atoms/lib/models/ppm/ppm_check_list.dart

73 lines
1.8 KiB
Dart

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;
}
}