toJson method

Map<String, dynamic> toJson()

Implementation

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