LexOffice.RequestBuilder.decode

You're seeing just the function decode, go back to LexOffice.RequestBuilder module for more information.

Specs

decode(Tesla.Env.t() | term(), false | struct() | [struct()]) ::
  {:ok, struct()} | {:ok, Tesla.Env.t()} | {:error, any()}

Handle the response for a Tesla request

Parameters

  • arg1 (Tesla.Env.t | term) - The response object
  • arg2 (:false | struct | [struct]) - The shape of the struct to deserialize into

Returns

{:ok, struct()} on success {:ok, Tesla.Env.t()} on failure {:error, term} on failure