Serializes the object to its JSON representation.
@override Map<String, dynamic> toJson() => {} ..putOpt("before", before) ..putOpt("highlight", highlight) ..putOpt("after", after);