toMap method

Map<String, dynamic> toMap()

Converts this OffsetPoint to a map of data, typically used for serialization.

Implementation

Map<String, dynamic> toMap() => {
      'x': dx,
      'y': dy,
      't': timestamp,
      if (pressure != null) 'p': pressure,
    };