# refreshRelations method Null safety

dynamic refreshRelations(

1. TutorialModel model

)

## Implementation

    static Future<TutorialModel> refreshRelations(TutorialModel model) async {
      List<TutorialEntryModel>? tutorialEntriesHolder;
      if (model.tutorialEntries != null) {
        tutorialEntriesHolder = List<TutorialEntryModel>.from(
                await Future.wait(model.tutorialEntries!.map((element) async {
          return await TutorialEntryCache.refreshRelations(element);
        })))
            .toList();
      }

      return model.copyWith(
        tutorialEntries: tutorialEntriesHolder,
      );
    }