Implementation
@visibleForTesting
RT_TimeUnit get coreValue => switch (this) {
unknown => RT_TimeUnit.RT_TimeUnit_unknown,
centuries => RT_TimeUnit.RT_TimeUnit_centuries,
days => RT_TimeUnit.RT_TimeUnit_days,
decades => RT_TimeUnit.RT_TimeUnit_decades,
hours => RT_TimeUnit.RT_TimeUnit_hours,
milliseconds => RT_TimeUnit.RT_TimeUnit_milliseconds,
minutes => RT_TimeUnit.RT_TimeUnit_minutes,
months => RT_TimeUnit.RT_TimeUnit_months,
seconds => RT_TimeUnit.RT_TimeUnit_seconds,
weeks => RT_TimeUnit.RT_TimeUnit_weeks,
years => RT_TimeUnit.RT_TimeUnit_years,
};