toJson method

Map<String, dynamic> toJson()

Implementation

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