Adapt the given text to the passive voice.
John cooked dinner.
Dinner was cooked by John.
Complete the following task based on the instruction and optional input provided.### Instruction:
Adapt the given text to the passive voice.

### Input:
John cooked dinner.

### Output:
Dinner was cooked by John.