Supporting old versions through Adapters
Adapters to support old version of license files and transform them into the current LicenseModel.
The adapters strategy would apply the following steps:
Deserialize license file into dictionary
Get version from dictionary
Get corresponding adapter for that version
Get LicenseModel by applying adapter to dictionary
Return LicenseModel
Every license version will have one adapter:
Last updated