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