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