ex_matrix_api v0.1.2 ExMatrixApi.Util

Generic helper functions.

Link to this section Summary

Functions

Converts list to list of structs

Converts nested maps to given struct

Link to this section Functions

Link to this function

to_struct(kind, attrs)

Specs

to_struct(module(), map()) :: struct()
to_struct(List.t(), module()) :: struct()

Converts list to list of structs

Link to this function

to_struct(map, key, mod)

Specs

to_struct(map(), atom(), module()) :: struct()

Converts nested maps to given struct