|
|
|
@ -3,7 +3,8 @@ class FaultDescription {
|
|
|
|
this.id,
|
|
|
|
this.id,
|
|
|
|
this.defectName,
|
|
|
|
this.defectName,
|
|
|
|
this.workPerformed,
|
|
|
|
this.workPerformed,
|
|
|
|
this.estimatedTime,});
|
|
|
|
this.estimatedTime,
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
FaultDescription.fromJson(dynamic json) {
|
|
|
|
FaultDescription.fromJson(dynamic json) {
|
|
|
|
id = json['id'];
|
|
|
|
id = json['id'];
|
|
|
|
@ -15,15 +16,18 @@ class FaultDescription {
|
|
|
|
String defectName;
|
|
|
|
String defectName;
|
|
|
|
String workPerformed;
|
|
|
|
String workPerformed;
|
|
|
|
String estimatedTime;
|
|
|
|
String estimatedTime;
|
|
|
|
FaultDescription copyWith({ num id,
|
|
|
|
FaultDescription copyWith({
|
|
|
|
|
|
|
|
num id,
|
|
|
|
String defectName,
|
|
|
|
String defectName,
|
|
|
|
String workPerformed,
|
|
|
|
String workPerformed,
|
|
|
|
String estimatedTime,
|
|
|
|
String estimatedTime,
|
|
|
|
}) => FaultDescription( id: id ?? this.id,
|
|
|
|
}) =>
|
|
|
|
|
|
|
|
FaultDescription(
|
|
|
|
|
|
|
|
id: id ?? this.id,
|
|
|
|
defectName: defectName ?? this.defectName,
|
|
|
|
defectName: defectName ?? this.defectName,
|
|
|
|
workPerformed: workPerformed ?? this.workPerformed,
|
|
|
|
workPerformed: workPerformed ?? this.workPerformed,
|
|
|
|
estimatedTime: estimatedTime ?? this.estimatedTime,
|
|
|
|
estimatedTime: estimatedTime ?? this.estimatedTime,
|
|
|
|
);
|
|
|
|
);
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
final map = <String, dynamic>{};
|
|
|
|
final map = <String, dynamic>{};
|
|
|
|
map['id'] = id;
|
|
|
|
map['id'] = id;
|
|
|
|
@ -32,5 +36,4 @@ FaultDescription copyWith({ num id,
|
|
|
|
map['estimatedTime'] = estimatedTime;
|
|
|
|
map['estimatedTime'] = estimatedTime;
|
|
|
|
return map;
|
|
|
|
return map;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|