# refreshRelations method Null safety

dynamic refreshRelations(

1. TutorialEntryModel model

)

## Implementation

    static Future<TutorialEntryModel> refreshRelations(
        TutorialEntryModel model) async {
      PlatformMediumModel? imageHolder;
      if (model.image != null) {
        try {
          await platformMediumRepository()!
              .get(model.image!.documentID)
              .then((val) {
            imageHolder = val;
          }).catchError((error) {});
        } catch (_) {}
      }

      return model.copyWith(
        image: imageHolder,
      );
    }