factory M7HeadTurnDetectionThreshold.fromMap(Map<String, dynamic> map) { return M7HeadTurnDetectionThreshold( rotationAngle: map['rotationAngle']?.toDouble() ?? 0.0, ); }