code: function User(data){
      var self = this;
      Object.keys(data).map(function(k){
        self[k] = data[k];
      });
    }
docs: @ngdoc object
  
  @name stormpath.userService.$user
  
  @description
  
  Use this service to get the current user and do access control checks
  on the user.