UnitSystem$cast function
Implementation
UnitSystem? UnitSystem$cast(value) {
if (value == UnitSystem.IMPERIAL) return UnitSystem.IMPERIAL;
if (value == UnitSystem.METRIC) return UnitSystem.METRIC;
return null;
}
UnitSystem? UnitSystem$cast(value) {
if (value == UnitSystem.IMPERIAL) return UnitSystem.IMPERIAL;
if (value == UnitSystem.METRIC) return UnitSystem.METRIC;
return null;
}