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