Returns a json representation of an instance of Ink.
Map<String, dynamic> toJson() => { 'strokes': strokes.map((stroke) => stroke.toJson()).toList(), };