MilestonesData.fromJson constructor

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

Implementation

MilestonesData.fromJson(Map<String, dynamic> json) {
  milestoneId = json['milestone_id'];
  isCompleted = json['is_completed'];
  progressQuantity = json['progress_quantity'];
  rewardsCredited = json['rewards_credited'];
  sId = json['_id'];
}