Convert all classes that implement the RepresentationInterface to uses dataclasses instead. Use of to_representation should be replaced by as_dict and the RepresentationInterface should be deleted.
The goal is to make it easier to make changes to the containers, especially for #682