Many methods of a program receive as parameter a List[Map[String, String]].
I'd like to formalize it and make it more readable by defining a class such as:
class MyClass extends List[Map[String, String]]
However it throws an error:
Illegal inheritance from sealed class 'List'
Is there a proper way to handle it?