Hunter.fromJson constructor

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

Implementation

factory Hunter.fromJson(Map<String, dynamic> json) => Hunter(
      id: json["id"],
      hunterStatus: json["hunter_status"],
      claimMessage: json["claim_message"],
      answeredAt: json["answered_at"],
      reason: json["reason"] == null
          ? []
          : List<String>.from(json["reason"]!.map((x) => x)),
      community: json["community"] == null
          ? []
          : List<Community>.from(
              json["community"]!.map((x) => communityValues.map[x]!)),
    );