use of ml.shifu.shifu.container.obj.ModelBasicConf.RunMode in project shifu by ShifuML.
the class RunModeDeserializer method deserialize.
@Override
public RunMode deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException {
ObjectCodec oc = jp.getCodec();
JsonNode node = oc.readTree(jp);
for (RunMode value : RunMode.values()) {
if (value.name().equalsIgnoreCase(node.textValue())) {
return value;
}
}
return null;
}
Aggregations