relationTypes function
Implementation
Map<String, dynamic> relationTypes() {
final types = <String, dynamic>{};
types['default'] = RelationType.ONE_TO_MANY;
for (var typ in RelationType.values) {
types[typ.toString().substring(typ.toString().indexOf('.') + 1)] = typ;
}
return types;
}