Sendio.Util (sendio v1.1.0)

Module for utility functions.

Summary

Functions

Removes nil values from a map. Used to avoid sending null values to the API.

Parses a iso8601 data string to a DateTime. Returns nil if argument is nil.

Functions

@spec compact(map()) :: map()

Removes nil values from a map. Used to avoid sending null values to the API.

Link to this function

parse_iso8601(date_string)

@spec parse_iso8601(String.t() | nil) :: DateTime.t() | nil

Parses a iso8601 data string to a DateTime. Returns nil if argument is nil.