toJSON method
Transforms this instance into a JSON object.
Implementation
@override
Map<String,dynamic> toJSON() {
final json = super.toJSON();
json['entity1'] = entity1?.uuid;
json['entity2'] = entity2?.uuid;
json['deceleration'] = deceleration;
return json;
}