collectReferences method
Implementation
@override
Future<List<ModelReference>> collectReferences({String? appId}) async {
List<ModelReference> referencesCollector = [];
if (policies != null) {
referencesCollector.add(ModelReference(
AppPolicyModel.packageName, AppPolicyModel.id, policies!));
}
if (policies != null) {
referencesCollector
.addAll(await policies!.collectReferences(appId: appId));
}
if (conditions != null) {
referencesCollector
.addAll(await conditions!.collectReferences(appId: appId));
}
return referencesCollector;
}