fromJson static method
Implementation
static TimeFormatPreset fromJson(String json) {
// Backward compatibility - default to h24 if unknown
try {
return values.byName(json);
} catch (_) {
return h24;
}
}
static TimeFormatPreset fromJson(String json) {
// Backward compatibility - default to h24 if unknown
try {
return values.byName(json);
} catch (_) {
return h24;
}
}