fromJson method

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

Copies the data from the given JSON object to this instance.

Implementation

@override
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];
  //   throw (" CurvePath fromJSON todo ");
  //   // curves.add(Curves[ curve.type ]().fromJSON( curve ) );
  // }

  return this;
}