# Generated by `mix github.gen` from docs/github-api/api.github.com.json. # Do not edit by hand; re-run the task instead. defmodule Noizu.Github.Job do @moduledoc false defstruct [ :check_run_url, :completed_at, :conclusion, :created_at, :head_branch, :head_sha, :html_url, :id, :labels, :name, :node_id, :run_attempt, :run_id, :run_url, :runner_group_id, :runner_group_name, :runner_id, :runner_name, :started_at, :status, :steps, :url, :workflow_name ] def from_json(json, headers \\ []) def from_json(nil, _headers), do: nil def from_json(list, headers) when is_list(list) do Enum.map(list, &from_json(&1, headers)) end def from_json(json, _headers) when is_map(json) do %__MODULE__{ check_run_url: Map.get(json, :check_run_url), completed_at: Map.get(json, :completed_at), conclusion: Map.get(json, :conclusion), created_at: Map.get(json, :created_at), head_branch: Map.get(json, :head_branch), head_sha: Map.get(json, :head_sha), html_url: Map.get(json, :html_url), id: Map.get(json, :id), labels: Map.get(json, :labels), name: Map.get(json, :name), node_id: Map.get(json, :node_id), run_attempt: Map.get(json, :run_attempt), run_id: Map.get(json, :run_id), run_url: Map.get(json, :run_url), runner_group_id: Map.get(json, :runner_group_id), runner_group_name: Map.get(json, :runner_group_name), runner_id: Map.get(json, :runner_id), runner_name: Map.get(json, :runner_name), started_at: Map.get(json, :started_at), status: Map.get(json, :status), steps: Map.get(json, :steps), url: Map.get(json, :url), workflow_name: Map.get(json, :workflow_name) } end def from_json(other, _headers), do: other end