TempChangeBean.fromJson constructor

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

Implementation

factory TempChangeBean.fromJson(Map<String, dynamic> json) => TempChangeBean(
  enable: json["enable"] ?? false,
  temp: (json["temp"] ?? 0.0).toDouble(),
  state: json["state"] ?? false,
  tempInfo: TempInfo.fromJson(json["tempInfo"] ?? {}),
  type: json["type"],
);