Map<String, dynamic> toJson() { return <String, dynamic>{ 'joints': joints.map((MLJoint v) => v.toJson()).toList(), }; }