core.Map<core.String, core.dynamic> toJson() => { if (outcome != null) 'outcome': outcome!, if (output != null) 'output': output!, };