Creates a new instance of DynaType.
DynaType
key
type
DynaType({required this.key, required this.type});