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