Implementation
@visibleForTesting
RT_AttributeUnit get coreValue => switch (this) {
unknown => RT_AttributeUnit.RT_AttributeUnit_unknown,
inches => RT_AttributeUnit.RT_AttributeUnit_inches,
feet => RT_AttributeUnit.RT_AttributeUnit_feet,
yards => RT_AttributeUnit.RT_AttributeUnit_yards,
miles => RT_AttributeUnit.RT_AttributeUnit_miles,
millimeters => RT_AttributeUnit.RT_AttributeUnit_millimeters,
centimeters => RT_AttributeUnit.RT_AttributeUnit_centimeters,
decimeters => RT_AttributeUnit.RT_AttributeUnit_decimeters,
meters => RT_AttributeUnit.RT_AttributeUnit_meters,
kilometers => RT_AttributeUnit.RT_AttributeUnit_kilometers,
nauticalMiles => RT_AttributeUnit.RT_AttributeUnit_nauticalMiles,
decimalDegrees => RT_AttributeUnit.RT_AttributeUnit_decimalDegrees,
seconds => RT_AttributeUnit.RT_AttributeUnit_seconds,
minutes => RT_AttributeUnit.RT_AttributeUnit_minutes,
hours => RT_AttributeUnit.RT_AttributeUnit_hours,
days => RT_AttributeUnit.RT_AttributeUnit_days,
};