HistoryNapSleepBean.fromJson constructor

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

Implementation

factory HistoryNapSleepBean.fromJson(Map<String, dynamic> json) =>
    HistoryNapSleepBean(
      list: List<NapSleepInfo>.from(
        (json["list"] ?? []).map((x) => (NapSleepInfo.fromJson(x))),
      ),
      timeType: json["timeType"] ?? -1,
    );