toJson method

  1. @override
Object toJson()
override

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(),
  };
}