getMap method
Retrieve a Map
Implementation
Future<Map<String, dynamic>?> getMap(String key) async {
final value = await getString(key);
if (value == null) return null;
try {
return json.decode(value) as Map<String, dynamic>;
} catch (e) {
throw SecureStorageException('Failed to decode map for key: $key', e);
}
}