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