defmodule GitHub.ThreadSubscription do @moduledoc """ Provides struct and type for ThreadSubscription """ @type t :: %__MODULE__{ created_at: String.t() | nil, ignored: boolean, reason: String.t() | nil, repository_url: String.t() | nil, subscribed: boolean, thread_url: String.t() | nil, url: String.t() } defstruct [:created_at, :ignored, :reason, :repository_url, :subscribed, :thread_url, :url] @doc false @spec __fields__(atom) :: keyword def __fields__(type \\ :t) def __fields__(:t) do [ created_at: {:nullable, :string}, ignored: :boolean, reason: {:nullable, :string}, repository_url: :string, subscribed: :boolean, thread_url: :string, url: :string ] end end