# 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.ApiOverview do @moduledoc false defstruct [ :actions, :actions_macos, :api, :codespaces, :copilot, :dependabot, :domains, :git, :github_enterprise_importer, :hooks, :importer, :packages, :pages, :ssh_key_fingerprints, :ssh_keys, :verifiable_password_authentication, :web ] 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__{ actions: Map.get(json, :actions), actions_macos: Map.get(json, :actions_macos), api: Map.get(json, :api), codespaces: Map.get(json, :codespaces), copilot: Map.get(json, :copilot), dependabot: Map.get(json, :dependabot), domains: Map.get(json, :domains), git: Map.get(json, :git), github_enterprise_importer: Map.get(json, :github_enterprise_importer), hooks: Map.get(json, :hooks), importer: Map.get(json, :importer), packages: Map.get(json, :packages), pages: Map.get(json, :pages), ssh_key_fingerprints: Map.get(json, :ssh_key_fingerprints), ssh_keys: Map.get(json, :ssh_keys), verifiable_password_authentication: Map.get(json, :verifiable_password_authentication), web: Map.get(json, :web) } end def from_json(other, _headers), do: other end