User.fromJson constructor
Deserializes json
into a User Object
Implementation
User.fromJson(Map<String, dynamic> json)
: email = json['email'],
lastName = json['lastName'],
firstName = json['firstName'],
id = json['id'],
links = linkMapFromJson(json['_links']),
embeddedSpaces = (json['_embedded']?['spaces'] as List?)
?.map((e) => Space.fromJson(e))
.toList();