toJson method
Implementation
Map<String, dynamic> toJson() {
Map<String, dynamic> rst = {};
rst["color"] = color.toJson();
rst.updateNotNull("gradient", gradient?.toJson());
rst["width"] = width;
rst["style"] = style.toJson();
rst.updateNotNull("begin", begin?.toJson());
rst.updateNotNull("end", end?.toJson());
rst.updateNotNull("shift", end?.toJson());
rst.updateNotNull("strokeCap", strokeCap.toJson());
rst.updateNotNull("strokeJoin", strokeJoin.toJson());
return rst;
}