Oban.Job.to_map
You're seeing just the function
to_map
, go back to Oban.Job module for more information.
Specs
to_map(Ecto.Changeset.t(t())) :: map()
Convert a Job changeset into a map suitable for database insertion.
Examples
Convert a worker generated changeset into a plain map:
%{id: 123}
|> MyApp.Worker.new()
|> Oban.Job.to_map()