toJson method

Map<String, dynamic> toJson()

Serializes this instance to a JSON-compatible map.

Used internally, not intended for direct use by consumers. The map structure may change without notice.

Implementation

Map<String, dynamic> toJson() {
  return <String, dynamic>{
    'startOffsetMillis': start,
    'endOffsetMillis': end,
    'coordinates': coordinates.toJson(),
  };
}