public AccountAttribute asAccountAttribute(Account account){
  if (account == null) {
    return null;
  }
  AccountAttribute who=new AccountAttribute();
  who.name=account.getFullName();
  who.email=account.getPreferredEmail();
  who.username=account.getUserName();
  return who;
}

public AccountAttribute asAccountAttribute ( Account account ) { if ( account == null ) { return null ; } AccountAttribute who = new AccountAttribute ( ) ; who . name = account . getFullName ( ) ; who . email = account . getPreferredEmail ( ) ; who . username = account . getUserName ( ) ; return who ; }
create an authorattribute for the given account suitable for serialization to json .
