deleteRuleTypes function

Map<String, dynamic> deleteRuleTypes()

Implementation

Map<String, dynamic> deleteRuleTypes() {
  final types = <String, dynamic>{};
  types['default'] = DeleteRule.NO_ACTION;
  for (var typ in DeleteRule.values) {
    types[typ.toString().substring(typ.toString().indexOf('.') + 1)] = typ;
  }
  return types;
}