Map<String, dynamic> toMap() { return <String, dynamic>{ 'algorithm': algorithm, 'protectionLevel': ?protectionLevel, }; }