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