fromKeycloakRep static method
Converts a map into a KeycloakUser. This map is based on the json returned by the keycloak java api.
Implementation
static KeycloakUser fromKeycloakRep(Map<String, dynamic> map) {
KeycloakUser user = GeoffUser.fromMap(map) as KeycloakUser;
user..setCreatedTimestamp(ModelUtils.getField<int>(map, "createdTimestamp"))
..setEmail(ModelUtils.getField<String?>(map, "email"))
..setFirstName(ModelUtils.getField<String?>(map, "firstName"))
..setLastName(ModelUtils.getField<String?>(map, "lastName"))
..setEmailVerified(ModelUtils.getField<bool?>(map, "emailVerified"))
..setAttributes(ModelUtils.getField<Map<String, List<String>>?>(map, "attributes"))
..setRequiredActions(ModelUtils.getField<List<String>>(map, "requiredActions"))
..setEnabled(ModelUtils.getField<bool>(map, "enabled"));
return user;
}