getConfigTypeEnum function
Implementation
ConfigType getConfigTypeEnum(String? t) {
try {
final val = ConfigType.values.byName(t ?? "");
return val;
} catch (e) {
debugPrint("ConfigType <$t> not found.");
return ConfigType.text;
}
}