ActionDetailsBean.fromJson constructor

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

Implementation

factory ActionDetailsBean.fromJson(Map<String, dynamic> json) => ActionDetailsBean(
      historyDay: json["historyDay"] ?? "",
      stepsList: List<int>.from((json["stepsList"] ?? []).map((x) => x)),
      distanceList: List<int>.from((json["distanceList"] ?? []).map((x) => x)),
      caloriesList: List<int>.from((json["caloriesList"] ?? []).map((x) => x)),
    );