StepsCategoryBean.fromJson constructor

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

Implementation

factory StepsCategoryBean.fromJson(Map<String, dynamic> json) => StepsCategoryBean(
      historyDay: json["historyDay"] ?? "",
      timeInterval: json["timeInterval"] ?? -1,
      stepsList: List<int>.from((json["stepsList"] ?? []).map((x) => x)),
    );