public static RoleMembershipBean unmarshallRoleMembership(Map<String, Object> source) {
        if (source == null) {
            return null;
        }
        RoleMembershipBean bean = new RoleMembershipBean();
        bean.setId(asLong(source.get("id")));
        bean.setOrganizationId(asString(source.get("organizationId")));
        bean.setRoleId(asString(source.get("roleId")));
        bean.setUserId(asString(source.get("userId")));
        bean.setCreatedOn(asDate(source.get("createdOn")));
        postMarshall(bean);
        return bean;
    }
public static RoleMembershipBean unmarshallRoleMembership ( Map < String , Object > source ) { if ( source == null ) { return null ; } RoleMembershipBean bean = new RoleMembershipBean ( ) ; bean . setId ( asLong ( source . get ( "id" ) ) ) ; bean . setOrganizationId ( asString ( source . get ( "organizationId" ) ) ) ; bean . setRoleId ( asString ( source . get ( "roleId" ) ) ) ; bean . setUserId ( asString ( source . get ( "userId" ) ) ) ; bean . setCreatedOn ( asDate ( source . get ( "createdOn" ) ) ) ; postMarshall ( bean ) ; return bean ; }
Unmarshals the given map source into a bean.
@param source the source
@return the role membership