CurvePath.fromJson constructor

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

Implementation

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

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