code: public static HttpOperation toHttpOperation(GenericRecord record) {
      if (record instanceof HttpOperation) {
        return (HttpOperation) record;
      }
  
      HttpOperation.Builder builder = HttpOperation.newBuilder();
  
      Map<String, String> stringMap = AvroUtils.toStringMap(record.get(HttpConstants.KEYS));
      if (stringMap != null) {
        builder.setKeys(stringMap);
      }
      stringMap = AvroUtils.toStringMap(record.get(HttpConstants.QUERY_PARAMS));
      if (stringMap != null) {
        builder.setQueryParams(stringMap);
      }
      stringMap = AvroUtils.toStringMap(record.get(HttpConstants.HEADERS));
      if (stringMap != null) {
        builder.setHeaders(stringMap);
      }
      Object body = record.get(HttpConstants.BODY);
      if (body != null) {
        builder.setBody(body.toString());
      }
  
      return builder.build();
    }
docs: Convert the given {@link GenericRecord} to {@link HttpOperation}