toJson method

  1. @override
Map<String, dynamic> toJson()
override

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,
    };