refreshRelations static method
Implementation
static Future<SimpleImageModel> refreshRelations(
SimpleImageModel model) async {
PlatformMediumModel? imageHolder;
if (model.image != null) {
try {
await platformMediumRepository(appId: model.appId)!
.get(model.image!.documentID)
.then((val) {
imageHolder = val;
}).catchError((error) {});
} catch (_) {}
}
return model.copyWith(
image: imageHolder,
);
}