toContentJson method

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

toJson

Implementation

@override
Map<String, dynamic> toContentJson() {
  return <String, dynamic>{
    'brushPrecision': brushPrecision,
    'points': points.map((Offset e) => e.toJson()).toList(),
    'strokeWidthList': strokeWidthList,
    'paint': paint.toJson(),
  };
}