toJson method
Implementation
@override
Map<String, dynamic> toJson() => {
'shape': 'path',
'points': pathPoints.toList(),
if (strokeColor != null) 'strokeColor': strokeColor.toString(),
if (strokeSize != null) 'strokeSize': strokeSize.toString(),
if (fillColor != null) 'fillColor': fillColor.toString(),
'closed': closePath,
};