SuggestedUser.fromJson constructor
SuggestedUser.fromJson(
- Map<String, dynamic> json
)
Implementation
factory SuggestedUser.fromJson(Map<String, dynamic> json) => SuggestedUser(
name: json["name"],
hashedphone: json["hashedphone"],
id: json["id"],
localizedheadline: json["localizedheadline"],
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]!)),
);