defmodule GitHub.Timeline.ReviewedEvent do @moduledoc """ Provides struct and type for TimelineReviewedEvent """ @type t :: %__MODULE__{ _links: map, author_association: String.t(), body: String.t() | nil, body_html: String.t() | nil, body_text: String.t() | nil, commit_id: String.t(), event: String.t(), html_url: String.t(), id: integer, node_id: String.t(), pull_request_url: String.t(), state: String.t(), submitted_at: String.t() | nil, user: GitHub.User.simple() } defstruct [ :_links, :author_association, :body, :body_html, :body_text, :commit_id, :event, :html_url, :id, :node_id, :pull_request_url, :state, :submitted_at, :user ] @doc false @spec __fields__(atom) :: keyword def __fields__(type \\ :t) def __fields__(:t) do [ _links: :map, author_association: :string, body: {:nullable, :string}, body_html: :string, body_text: :string, commit_id: :string, event: :string, html_url: :string, id: :integer, node_id: :string, pull_request_url: :string, state: :string, submitted_at: :string, user: {GitHub.User, :simple} ] end end