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