Converts this configuration to a JSON map.
Map<String, dynamic> toJson() => { 'enabled': enabled, 'port': port, 'address': address, 'writable': writable, 'enableCache': enableCache, 'cacheSize': cacheSize, };