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