Oban.Job.to_map

You're seeing just the function to_map, go back to Oban.Job module for more information.
Link to this function

to_map(changeset)

View Source (since 0.9.0)

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()