toJson method
Serializes the object to its JSON representation.
Implementation
@override
Map<String, dynamic> toJson() => <String, dynamic>{}.also((json) {
json.putJSONableIfNotEmpty("start", start);
json.putJSONableIfNotEmpty("end", end);
});