Cm00ProgramInfoRequest.fromJson constructor
Cm00ProgramInfoRequest.fromJson(
- Map<String, dynamic> json
)
Implementation
factory Cm00ProgramInfoRequest.fromJson(Map<String, dynamic> json) => Cm00ProgramInfoRequest(
userId: json["userId"],
deviceId: json["deviceId"],
programType: json["programType"],
name: json["name"],
cupNum: json["cupNum"],
singleWeight: json["singleWeight"].toDouble(),
doubleWeight: json["doubleWeight"].toDouble(),
barSet: json["barSet"],
enableTargetWeight: json["enableTargetWeight"],
targetWeightSet: json["targetWeightSet"],
enableTargetTime: json["enableTargetTime"],
targetTimeSet: json["targetTimeSet"],
enableSoak: json["enableSoak"],
soakWaterYieldSet: json["soakWaterYieldSet"].toDouble(),
soakTimeSet: json["soakTimeSet"],
flowRate: json["flowRate"].toDouble(),
curveType: json["curveType"],
curveData: List<CurveDatum>.from(json["curveData"].map((x) => CurveDatum.fromJson(x))),
remark: json["remark"],
);