Information about a Git branch in a HuggingFace repository.
Creates a BranchInfo struct from an API response.
@type t() :: %HfHub.Git.BranchInfo{ name: String.t(), ref: String.t() | nil, target_commit: String.t() | nil }
@spec from_response(map()) :: t()