fromJSON method
Restores this instance from the given JSON object.
Implementation
GameEntity fromJSON(Map<String,dynamic> json ) {
name = json['name'];
active = json['active'];
neighborhoodRadius = json['neighborhoodRadius'];
updateNeighborhood = json['updateNeighborhood'];
position.fromArray( json['position'] );
rotation.fromArray( json['rotation'] );
scale.fromArray( json['scale'] );
forward.fromArray( json['forward'] );
up.fromArray( json['up'] );
boundingRadius = json['boundingRadius'];
maxTurnRate = json['maxTurnRate'];
canActivateTrigger = json['canActivateTrigger'];
children.clear();
children.addAll(json['children'].subList());
neighbors.clear();
neighbors.addAll(json['children'].subList());
parent = json['parent'];
_localMatrix.fromArray( json['_localMatrix'] );
_worldMatrix.fromArray( json['worldMatrix'] );
_cache['position'].fromArray( json['_cache'].position );
_cache['rotation'].fromArray( json['_cache'].rotation );
_cache['scale'].fromArray( json['_cache'].scale );
started = json['_started'];
_uuid = json['uuid'];
return this;
}