toJson method

Map<String, dynamic> toJson()

Implementation

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