toJson method
Implementation
@override
Object toJson() {
return {
if (neighborCount.isNotDefault) 'neighborCount': neighborCount,
if (crowdingCount.isNotDefault) 'crowdingCount': crowdingCount,
if (restrictions.isNotDefault) 'restrictions': encodeList(restrictions),
if (returnEmbeddings.isNotDefault) 'returnEmbeddings': returnEmbeddings,
if (dataFormat.isNotDefault) 'dataFormat': dataFormat.toJson(),
};
}