toJson method

Map<String, dynamic> toJson()

Converts this TimePoint to a JSON representation.

Returns: A Map<String, dynamic> containing the height and index.

Implementation

Map<String, dynamic> toJson() => {'height': height, 'index': index};