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