CurvePath.fromJSON constructor

CurvePath.fromJSON(
  1. Map<String, dynamic> json
)

Implementation

CurvePath.fromJSON(Map<String, dynamic> json) : super.fromJSON(json) {
  autoClose = json["autoClose"];
  type = 'CurvePath';
  curves = [];

  for (var i = 0, l = json["curves"].length; i < l; i++) {
    var curve = json["curves"][i];
    curves.add(Curve.castJSON(curve));
  }
}