ReceiveAcceleration.fromMap constructor

ReceiveAcceleration.fromMap(
  1. Map map
)

Implementation

factory ReceiveAcceleration.fromMap(Map<dynamic, dynamic> map) {
  final double timestamp = map['timestamp'];
  final int x = map['x'];
  final int y = map['y'];
  final int z = map['z'];
  return ReceiveAcceleration(timestamp, x, y, z);
}