StressHandlerBean.fromJson constructor

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

Implementation

factory StressHandlerBean.fromJson(Map<String, dynamic> json) => StressHandlerBean(
      type: json["type"],
      isSupport: json["isSupport"] ?? false,
      value: json["value"] ?? -1,
      list: List<HistoryStressInfoBean>.from((json["list"] ?? []).map((x) => (HistoryStressInfoBean.fromJson(x)))),
      state: json["state"] ?? false,
      timingStressInfo: TimingStressInfoBean.fromJson(json["timingStressInfo"] ?? {}),
    );