refreshRelations static method
Implementation
static Future<PostModel> refreshRelations(PostModel model) async {
List<MemberMediumContainerModel>? memberMediaHolder;
if (model.memberMedia != null) {
memberMediaHolder = List<MemberMediumContainerModel>.from(
await Future.wait(model.memberMedia!.map((element) async {
return await MemberMediumContainerCache.refreshRelations(element);
})))
.toList();
}
return model.copyWith(
memberMedia: memberMediaHolder,
);
}