public JsonTypeSerializer(String typeDef) {
   this(JsonTypeDefinition.fromJson(typeDef));
 }