setMap method
Store a Map (as JSON)
Implementation
Future<void> setMap(String key, Map<String, dynamic> value) async {
try {
final jsonString = json.encode(value);
await setString(key, jsonString);
} catch (e) {
throw SecureStorageException('Failed to encode map for key: $key', e);
}
}