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