toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  Map<String, dynamic> map = {
    "userId": userId,
    "deviceId": deviceId,
    "extractWaterTemperature": extractWaterTemperature,
    "holdingTime": holdingTime,
    "screenSleepTime": screenSleepTime,
    "defaultWaterVolume": defaultWaterVolume,
    "extractFlowRate": extractFlowRate,
    "steamGear": steamGear,
    "superSteamGear": superSteamGear,
    "extractProgramType": extractProgramType,
    "extractProgramId": extractProgramId,
  };
  map.removeWhere((key, value) => value == null);
  return map;
}