code: public static LocalCall<Result> add(String name, LocalCall<?> call,
              LocalDateTime once, Map<String, ?> metadata) {
          LinkedHashMap<String, Object> args = new LinkedHashMap<>();
          Map<String, Object> payload = call.getPayload();
          args.put("function", payload.get("fun"));
          args.put("job_args", payload.get("arg"));
          args.put("job_kwargs", payload.get("kwarg"));
  
          args.put("name", name);
          args.put("once", once.format(DateTimeFormatter.ofPattern("yyyy-MM-dd'T'HH:mm:ss")));
          args.put("metadata", metadata);
          return new LocalCall<>("schedule.add", Optional.empty(), Optional.of(args),
                  new TypeToken<Result>() { });
      }
docs: Schedule a salt call for later execution on the minion
  @param name job name
  @param call salt call schedule
  @param once when to execute it once
  @param metadata additional metadata
  @return call object to execute via the client