WpUser.fromJson constructor
Creates a WpUser from a JSON object
Implementation
WpUser.fromJson(Map<String, dynamic> json) {
id = json['id'];
token = json['token'];
email = json['email'];
username = json['username'];
firstName = json['first_name'];
lastName = json['last_name'];
avatar = json['avatar'];
createdAt = json['created_at'];
}