GoalStatusInfoObject.fromJson constructor

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

Implementation

factory GoalStatusInfoObject.fromJson(Map<String, dynamic> json) => GoalStatusInfoObject(
      name: json["name"] ?? '',
      status: json["status"]?.toString() ?? '',
      winned: json["winned"] ?? 0,
      winningDates: json["winning_dates"] != null
          ? List<String>.from(json["winning_dates"].map((x) => x.toString()))
          : [],
      goalId: json["goal_id"] ?? '',
    );