Transforms the given source map or struct into the target struct.
source
target
generate_uuid() :: String.t()
struct_from(source :: struct(), target :: struct()) :: struct()
struct_from(attrs :: map(), target :: module()) :: struct()