### Define and Instantiate Struct with ExConstructor Source: https://github.com/appcues/exconstructor/blob/main/README.md Define a struct using `defstruct` and then use `use ExConstructor` to automatically generate a `new` function for instantiation. This function handles various input data formats. ```elixir defmodule TestStruct do use ExConstructor defstruct field_one: nil, field_two: nil, field_three: nil, field_four: nil end TestStruct.new(%{"field_one" => "a", "fieldTwo" => "b", :field_three => "c", :FieldFour => "d"}) # => %TestStruct{field_one: "a", field_two: "b", field_three: "c", field_four: "d"} ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.