fromJSON method

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

Restores this instance from the given JSON object.

Implementation

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

	path.fromJSON( json['path'] );
	nextWaypointDistance = json['nextWaypointDistance'];

	return this;
}