toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (deviceType != null) {
    json[r'deviceType'] = deviceType;
  }
  if (readDate != null) {
    json[r'readDate'] = readDate;
  }
  json[r'readHour'] = readHour;
  if (readType != null) {
    json[r'readType'] = readType;
  }
  if (readvalue != null) {
    json[r'readvalue'] = readvalue;
  }
  return json;
}