Map<String, dynamic> toJson() { return { 'lineIndex': lineIndex, 'startIndex': startIndex, 'endIndex': endIndex, }; }