toJSON method

  1. @override
dynamic toJSON()
override

Implementation

@override
toJSON() {
  var data = super.toJSON();

  data["vec1"] = vec1.toArray();
  data["vec2"] = vec2.toArray();

  return data;
}