toJson method

Map<String, dynamic> toJson()

Converts this configuration to a JSON map.

Implementation

Map<String, dynamic> toJson() => {
  'enableTLS': enableTLS,
  'tlsCertificatePath': tlsCertificatePath,
  'tlsPrivateKeyPath': tlsPrivateKeyPath,
  'enableKeyRotation': enableKeyRotation,
  'keyRotationDays': keyRotationInterval.inDays,
  'maxAuthAttempts': maxAuthAttempts,
  'enableRateLimiting': enableRateLimiting,
  'maxRequestsPerMinute': maxRequestsPerMinute,
  'dhtDifficulty': dhtDifficulty,
};