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