Ecto.CastError, expected params to be a :map

Okey, I found out whats goin on.

Nicd was right about Map type. My error was due to nested Structs inside Map. So I needed to convert nested Struct into nested Map and everything works fine!

About conversion: Convert a nested struct into a nested map