RotationData.fromMap constructor
Implementation
factory RotationData.fromMap(Map<String, dynamic> map) {
return RotationData(
x: (map['x'] as num).toDouble(),
y: (map['y'] as num).toDouble(),
z: (map['z'] as num).toDouble(),
w: (map['w'] as num?)?.toDouble() ?? 0.0,
timestamp: (map['timestamp'] as num?)?.toInt() ?? 0,
);
}