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