fromJSON method
Restores this instance from the given JSON object.
Implementation
CellSpacePartitioning fromJSON(Map<String,dynamic> json ) {
cells.length = 0;
width = json['width'];
height = json['height'];
depth = json['depth'];
cellsX = json['cellsX'];
cellsY = json['cellsY'];
cellsZ = json['cellsZ'];
_halfWidth = json['_halfWidth'];
_halfHeight = json['_halfHeight'];
_halfDepth = json['_halfHeight'];
_min.fromArray( json['_min'] );
_max.fromArray( json['_max'] );
for ( int i = 0, l = json['cells'].length; i < l; i ++ ) {
cells.add( Cell().fromJSON( json['cells'][ i ] ) );
}
return this;
}