@override Object toJson() { return { 'name': name, if (destination != null) 'destination': destination!.toJson(), 'parent': parent, }; }