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