code: public static EvaluatorRequest fromString(final String serializedRequest) {
      try {
        final Decoder decoder =
            DecoderFactory.get().jsonDecoder(AvroEvaluatorRequest.getClassSchema(), serializedRequest);
        final SpecificDatumReader<AvroEvaluatorRequest> reader = new SpecificDatumReader<>(AvroEvaluatorRequest.class);
        return fromAvro(reader.read(null, decoder));
      } catch (final IOException ex) {
        throw new RuntimeException("Unable to deserialize compute request", ex);
      }
    }
docs: Deserialize EvaluatorRequest.