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:

  1. Deserialize license file into dictionary

  2. Get version from dictionary

  3. Get corresponding adapter for that version

  4. Get LicenseModel by applying adapter to dictionary

  5. Return LicenseModel

Every license version will have one adapter:

Last updated