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