fromJSON method

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

Restores this instance from the given JSON object.

Implementation

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

	mass = json['mass'];
	maxForce = json['maxForce'];
	steering = SteeringManager( this ).fromJSON( json['steering'] );
	smoother = json['smoother'] != null? Smoother().fromJSON( json['smoother'] ) : null;

	return this;
}