Creating an IterableEntity / Iterable2Entity
Steps to create an IterableEntity / Iterable2Entity
Declare your class this way :
Add the imports and part statements, the @Modddel
annotation (don't forget including the contentValidation), and the private empty constructor.
Add the factory constructor. The factory constructor should have only one member parameter, which type should match the type template.
Create your failure(s) sealed class(es).
You can now run the generator, and then override and implement the "validate" methods. Note that the "validate" method of the contentValidation is automatically generated, and you should never override it (Your IDE's Quick Fix won't override it neither).
When using some Dartz collections (ISetEntity, IMapEntity...), you also need to override the $getOrder
method.