toJson method

Map<String, dynamic> toJson()

Returns a json representation of an instance of StrokePoint.

Implementation

Map<String, dynamic> toJson() => {
      'x': x,
      'y': y,
      't': t,
    };