toJson method

Map<String, dynamic> toJson()

Returns a json representation of an instance of Ink.

Implementation

Map<String, dynamic> toJson() => {
      'strokes': strokes.map((stroke) => stroke.toJson()).toList(),
    };