toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  Map<String, dynamic> json = {};
  json["rows"] = nRows;
  json["columns"] = nColumns;
  json["data"] = rowsData
      .map((e) => e.buffer.asFloat32List(0, nColumns).toList(growable: false))
      .toList(growable: false);
  return json;
}