StepInfoBean.fromJson constructor

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

Implementation

factory StepInfoBean.fromJson(Map<String, dynamic> json) => StepInfoBean(
      steps: json["steps"] ?? -1,
      distance: json["distance"] ?? -1,
      calories: json["calories"] ?? -1,
      time: json["time"] ?? -1,
    );