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