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