Map<String, dynamic> toJson() { return { 'licenseKey': licenseKey, 'protocol': _protocolToInt(protocol), 'host': host, 'port': port, 'contextName': contextName, 'bufferTime': bufferTime, }; }