exhal v8.2.0 ExHal.Transcoder.ValueConverter behaviour

Link to this section Summary

Callbacks

Returns Elixir representation of HAL value.

Returns HAL representation of Elixir value.

Link to this section Types

Link to this section Callbacks

Link to this callback

from_hal(any)
from_hal(any()) :: any()

Returns Elixir representation of HAL value.

hal_value - The HAL representation of the value to convert.

Link to this callback

to_hal(any)
to_hal(any()) :: any()

Returns HAL representation of Elixir value.

elixir_value - The Elixir representation of the value to convert.