FLeftMatrix.fromJson constructor
Implementation
FLeftMatrix.fromJson(Map<String, dynamic> json)
: nRows = (json["rows"] as int),
nColumns = (json["columns"] as int),
rowsData = (json["data"] as List<dynamic>)
.map((list) => Float32List.fromList(list
.cast<double>()
.followedBy([0.0, 0.0, 0.0]).toList(growable: false))
.buffer
.asFloat32x4List(0, (list.length + 3) ~/ 4))
.toList(growable: false);