I\'m archiving a Dictionary to Data like this:
Dictionary
Data
do { let archivedData = try NSKeyedArchiver.archivedData(with