normalize<T extends Object?> method
T?
normalize<T extends Object?>()
Implementation
T? normalize<T extends Object?>(
Entity? content,
T? Function(Entity content) test,
Entity? Function(Entity content) next,
) {
if (content == null) return null;
final data = test(content);
if (data != null) return data;
return normalize(next(content), test, next);
}