toJson method
Implementation
@override
Object toJson() => {
if (entityId != null) 'entityId': entityId,
if (embedding != null) 'embedding': embedding!.toJson(),
if (neighborCount.isNotDefault) 'neighborCount': neighborCount,
if (stringFilters.isNotDefault) 'stringFilters': encodeList(stringFilters),
if (numericFilters.isNotDefault)
'numericFilters': encodeList(numericFilters),
if (perCrowdingAttributeNeighborCount.isNotDefault)
'perCrowdingAttributeNeighborCount': perCrowdingAttributeNeighborCount,
if (parameters != null) 'parameters': parameters!.toJson(),
};