Map<String, dynamic> toJson() { final commsProtocol = this.commsProtocol; final endpoint = this.endpoint; return { 'CommsProtocol': commsProtocol.toValue(), 'Endpoint': endpoint, }; }