Safe accessors and coercions used by response normalization.
Summary
Functions
Coerces a value to a boolean when present.
Coerces a value to an integer when present.
Coerces a value to a number when present.
Coerces a value to a string when present.
Coerces a value to a lowercase string when present.
Safely reads a value from a map or list, returning default when absent.
Safely reads the first present key from a map or list.
Types
@type key() :: atom() | String.t() | non_neg_integer()
Functions
Coerces a value to a boolean when present.
Coerces a value to an integer when present.
Coerces a value to a number when present.
Coerces a value to a string when present.
Coerces a value to a lowercase string when present.
Safely reads a value from a map or list, returning default when absent.
Safely reads the first present key from a map or list.