Error payload inside an Interactions SSE error event.
error
@type t() :: %Gemini.Types.Interactions.Events.Error{ code: String.t() | nil, message: String.t() | nil }
@spec from_api(map() | nil) :: t() | nil
@spec to_api(t() | map() | nil) :: map() | nil