toJson method

  1. @override
Object toJson()
override

Implementation

@override
Object toJson() {
  return {
    if (vectorsCount.isNotDefault) 'vectorsCount': encodeInt64(vectorsCount),
    if (sparseVectorsCount.isNotDefault)
      'sparseVectorsCount': encodeInt64(sparseVectorsCount),
    if (shardsCount.isNotDefault) 'shardsCount': shardsCount,
  };
}