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