refreshRelations static method
Implementation
static Future<WorkflowModel> refreshRelations(WorkflowModel model) async {
List<WorkflowTaskModel>? workflowTaskHolder;
if (model.workflowTask != null) {
workflowTaskHolder = List<WorkflowTaskModel>.from(
await Future.wait(model.workflowTask!.map((element) async {
return await WorkflowTaskCache.refreshRelations(element);
})))
.toList();
}
return model.copyWith(
workflowTask: workflowTaskHolder,
);
}