toRetentionIntervalUnitValues method
Implementation
RetentionIntervalUnitValues toRetentionIntervalUnitValues() {
switch (this) {
case 'DAYS':
return RetentionIntervalUnitValues.days;
case 'WEEKS':
return RetentionIntervalUnitValues.weeks;
case 'MONTHS':
return RetentionIntervalUnitValues.months;
case 'YEARS':
return RetentionIntervalUnitValues.years;
}
throw Exception('$this is not known in enum RetentionIntervalUnitValues');
}