User.parse constructor
User.parse(
- Map? json
Implementation
factory User.parse(Map? json) {
List<String> encrypted = [];
if (json != null && json.containsKey("encrypted")) {
Iterable<dynamic> encryptedArray = json["encrypted"];
encrypted.addAll(encryptedArray.map((v) => v.toString()));
}
return User._(json?["id"], json?["email"], json?["name"], encrypted,
json ?? <dynamic, dynamic>{});
}