toDict method
Convert the object to a dictionary.
Implementation
Map<String, dynamic> toDict() {
Map<String, dynamic> d = {};
d['class_name'] = className;
d['version'] = version;
d['is_locked'] = isLocked;
d['mass'] = mass;
d['speed'] = speed;
d['direction'] = direction?.toDict();
d['velocity'] = velocity?.toDict();
d['rotate_axis'] = rotateAxis?.toDict();
d['angular_velocity'] = angularVelocity;
d['angle'] = angle;
d['name'] = name;
d['others'] = others;
return d;
}