TencentDeviceOrientation.fromMap constructor
TencentDeviceOrientation.fromMap( - Map map
)
Implementation
factory TencentDeviceOrientation.fromMap(Map map) {
return TencentDeviceOrientation(
trueHeading: ((map['trueHeading'] as num?) ?? 0).toDouble(),
magneticHeading: (map['magneticHeading'] as num?)?.toDouble(),
accuracy: (map['accuracy'] as num?)?.toDouble(),
x: (map['x'] as num?)?.toDouble(),
y: (map['y'] as num?)?.toDouble(),
z: (map['z'] as num?)?.toDouble(),
timestamp: map['timestamp'] as int?,
);
}