@override Object toJson() { return { 'outcome': outcome.toJson(), if (output.isNotDefault) 'output': output, }; }