toJSON method

  1. @override
Map<String, dynamic> toJSON()
override

Transforms this instance into a JSON object.

Implementation

@override
Map<String,dynamic> toJSON() {
	final json = super.toJSON();

	json['mass'] = mass;
	json['maxForce'] = maxForce;
	json['steering'] = steering.toJSON();
	json['smoother'] = smoother?.toJSON();

	return json;
}