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