package com.lingniu.ingest.vehiclestat;

public enum DailyMileageStrategy {
    JT808_TOTAL_MILEAGE_DIFF;

    public static DailyMileageStrategy fromStorage(String value) {
        if (value == null || value.isBlank()) {
            return JT808_TOTAL_MILEAGE_DIFF;
        }
        String normalized = value.trim();
        return DailyMileageStrategy.valueOf(normalized);
    }
}
