# 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.TopicSearchResultItem do @moduledoc false defstruct [ :aliases, :created_at, :created_by, :curated, :description, :display_name, :featured, :logo_url, :name, :related, :released, :repository_count, :score, :short_description, :text_matches, :updated_at ] 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__{ aliases: Map.get(json, :aliases), created_at: Map.get(json, :created_at), created_by: Map.get(json, :created_by), curated: Map.get(json, :curated), description: Map.get(json, :description), display_name: Map.get(json, :display_name), featured: Map.get(json, :featured), logo_url: Map.get(json, :logo_url), name: Map.get(json, :name), related: Map.get(json, :related), released: Map.get(json, :released), repository_count: Map.get(json, :repository_count), score: Map.get(json, :score), short_description: Map.get(json, :short_description), text_matches: Map.get(json, :text_matches), updated_at: Map.get(json, :updated_at) } end def from_json(other, _headers), do: other end