code: public static JsonElementConverter getConvertor(String fieldName, String fieldType, Schema schemaNode,
        WorkUnitState state, boolean nullable, List<String> ignoreFields) throws UnsupportedDateTypeException {
  
      Type type;
      try {
        type = Type.valueOf(fieldType.toUpperCase());
      } catch (IllegalArgumentException e) {
        throw new UnsupportedDateTypeException(fieldType + " is unsupported");
      }
  
      switch (type) {
        case ARRAY:
          return new JsonElementConversionWithAvroSchemaFactory.ArrayConverter(fieldName, nullable, type.toString(),
              schemaNode, state, ignoreFields);
  
        case MAP:
          return new JsonElementConversionWithAvroSchemaFactory.MapConverter(fieldName, nullable, type.toString(),
              schemaNode, state, ignoreFields);
  
        case ENUM:
          return new JsonElementConversionWithAvroSchemaFactory.EnumConverter(fieldName, nullable, type.toString(),
              schemaNode);
  
        case RECORD:
          return new JsonElementConversionWithAvroSchemaFactory.RecordConverter(fieldName, nullable, type.toString(),
              schemaNode, state, ignoreFields);
  
        default:
          return JsonElementConversionFactory.getConvertor(fieldName, fieldType, new JsonObject(), state, nullable);
      }
    }
docs: Use to create a converter for a single field from a schema.