toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final data = <String, dynamic>{};
  data['status'] = status;
  data['tempUnit'] = tempUnit;
  data['weightUnit'] = weightUnit;
  data['weightUnitStr'] = weightUnitStr;
  data['weightDecimal'] = weightDecimal;
  data['weightStatus'] = weightStatus;
  data['weightNegative'] = weightNegative;
  data['weight'] = weight;
  data['weightStr'] = weightStr;
  data['adc'] = adc;
  data['algorithmId'] = algorithmId;
  data['tempNegative'] = tempNegative;
  data['temp'] = temp;
  return data;
}