LegacyDataConverter

Utility functions for converting custom storage data to migration-ready JSON format.

Functions

Link copied to clipboard
fun buildMechanismsList(mechanismsMap: Map<String, String>, accountsMap: Map<String, String>): List<LegacyMechanism>

Build mechanisms list with nested account data from raw JSON strings.

Link copied to clipboard
fun convertToLegacyExportedData(storageClient: StorageClient): LegacyExportedData

Converts legacy authenticator data from a StorageClient into a LegacyExportedData object ready to be returned from LegacyStorageProvider.getMigrationData.