SensorReadingXYZ.fromJson constructor

SensorReadingXYZ.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory SensorReadingXYZ.fromJson(Map<String, dynamic> json) {
  return SensorReadingXYZ(
    x: json['x'] as num,
    y: json['y'] as num,
    z: json['z'] as num,
  );
}