HistorySleepBean.fromJson constructor

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

Implementation

factory HistorySleepBean.fromJson(Map<String, dynamic> json) => HistorySleepBean(
      timeType: json["timeType"] ?? -1,
      sleepInfo: SleepInfo.fromJson(json["sleepInfo"] ?? {}),
    );