toJson method

  1. @override
Object toJson()
override

Implementation

@override
Object toJson() {
  return {
    if (startIndex != null) 'startIndex': startIndex,
    if (endIndex != null) 'endIndex': endIndex,
    if (factIndexes.isNotDefault) 'factIndexes': factIndexes,
    if (score != null) 'score': encodeDouble(score),
  };
}