code: private io.motown.operatorapi.viewmodel.persistence.entities.MeterValue toOperatorApiMeterValue(MeterValue meterValue) {
          String value;
  
          switch (meterValue.getUnit()) {
              case WATT_HOUR:
                  value = meterValue.getValue();
                  break;
              case KILOWATT_HOUR:
                  value = String.valueOf(Float.parseFloat(meterValue.getValue()) * 1000);
                  break;
              default:
                  throw new AssertionError(String.format("Unexpected value for MeterValue's UnitOfMeasure [%s]", meterValue.getUnit()));
          }
  
          return new io.motown.operatorapi.viewmodel.persistence.entities.MeterValue(meterValue.getTimestamp(), value);
      }
docs: Converts the Core API's {@code MeterValue} to an Operator API's {@code MeterValue}.
  
  @param meterValue the Core API {@code MeterValue}.
  @return the Operator API {@code MeterValue}.
  @throws AssertionError if an unexpected {@code UnitOfMeasure} is encountered.