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