toJson method

  1. @override
Object toJson()
override

Implementation

@override
Object toJson() {
  return {
    if (partIndex.isNotDefault) 'partIndex': partIndex,
    if (startIndex.isNotDefault) 'startIndex': startIndex,
    if (endIndex.isNotDefault) 'endIndex': endIndex,
    if (text.isNotDefault) 'text': text,
  };
}