getFieldsEntityTypes method
Implementation
Map<String, TypeInfo> getFieldsEntityTypes([O? o]) {
var entityFields = _fieldsEntityTypes;
if (entityFields != null) return entityFields;
var enumFields = getFieldsEnumTypes(o);
var mapEntityFields =
getFieldsTypes().entries
.map((e) {
var field = e.key;
var typeInfo = e.value;
if (enumFields.containsKey(field)) return null;
if (typeInfo.isListEntityOrReference) return null;
var entityType = typeInfo.entityType;
if (entityType == null) return null;
return MapEntry(field, typeInfo);
})
.nonNulls
.toMapFromEntries();
return _fieldsEntityTypes = Map.unmodifiable(mapEntityFields);
}