Map<String, dynamic> toJson() { return { 'gyroX': gyroX, 'gyroY': gyroY, 'gyroZ': gyroZ, 'accelX': accelX, 'accelY': accelY, 'accelZ': accelZ, }; }