refreshRelations static method
Implementation
static Future<BookletModel> refreshRelations(BookletModel model) async {
List<SectionModel>? sectionsHolder;
if (model.sections != null) {
sectionsHolder = List<SectionModel>.from(
await Future.wait(model.sections!.map((element) async {
return await SectionCache.refreshRelations(element);
})))
.toList();
}
return model.copyWith(
sections: sectionsHolder,
);
}