Project Steps completion
This commit is contained in:
@@ -127,17 +127,19 @@ class Project{
|
||||
class ProjectStep{
|
||||
ProjectStep(this.stepName,this.eta,this.progress);
|
||||
|
||||
ProjectStep.fromJson(Map<String,dynamic> json): stepName=json['name'], eta=json['eta'], progress=json['progress'];
|
||||
ProjectStep.fromJson(Map<String,dynamic> json): stepName=json['name'], eta=json['eta'], progress=json['progress'], finishedDate=(json['finishedDate']!=null) ? DateTime.parse(json['finishedDate']) : null;
|
||||
|
||||
Map<String, dynamic> toJson()=>{
|
||||
'name': stepName,
|
||||
'eta':eta,
|
||||
'progress':progress
|
||||
'progress':progress,
|
||||
if(finishedDate!=null) 'finishedDate':finishedDate.toString()
|
||||
};
|
||||
|
||||
String stepName;
|
||||
int eta;
|
||||
int progress;
|
||||
DateTime? finishedDate;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user