toJson method
Converts this SecurityConfig instance to a JSON map.
This method serializes the SecurityConfig object into a JSON representation that can be easily stored or transmitted.
Returns a Map containing the 'enableEncryption', 'encryptionKey', 'enableSecureStorage', and 'sslPinning' keys and their corresponding values.
Security Note: Be extremely cautious when handling the JSON representation of this object, especially if it contains the encryptionKey.
Implementation
Map<String, dynamic> toJson() => {
'enableEncryption': enableEncryption,
'encryptionKey': encryptionKey,
'enableSecureStorage': enableSecureStorage,
'sslPinning': sslPinning,
};