getAllFieldsEntityAnnotations method
Implementation
Map<String, List<EntityAnnotation>>? getAllFieldsEntityAnnotations([O? o]) {
var fieldsNames = this.fieldsNames(o);
var entries = fieldsNames.map((f) {
var annotations = getFieldEntityAnnotations(o, f);
return annotations == null ? null : MapEntry(f, annotations);
}).whereNotNull();
var map = Map<String, List<EntityAnnotation>>.fromEntries(entries);
return map.isEmpty ? null : map;
}