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