toJson method
Implementation
Map<String, dynamic> toJson() {
final destination = this.destination;
final certificateMode = this.certificateMode;
final connectionRetryInterval = this.connectionRetryInterval;
final numRetries = this.numRetries;
return {
'destination': destination,
if (certificateMode != null) 'certificateMode': certificateMode.toValue(),
if (connectionRetryInterval != null)
'connectionRetryInterval': connectionRetryInterval,
if (numRetries != null) 'numRetries': numRetries,
};
}