question: 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 ; }
target:  Create an AuthorAttribute for the given account suitable for serialization to JSON.