@override Object toJson() => { 'entityId': entityId, 'featureValues': { for (final e in featureValues.entries) e.key: e.value.toJson(), }, };