fromJSON method

  1. @override
MovingEntity fromJSON(
  1. Map<String, dynamic> json
)
override

Restores this instance from the given JSON object.

Implementation

@override
MovingEntity fromJSON(Map<String,dynamic> json ) {
	super.fromJSON( json );

	velocity.fromArray( json['velocity'] );
	maxSpeed = json['maxSpeed'];
	updateOrientation = json['updateOrientation'];

	return this;
}