public static List<ServiceRequester> deserialize(String encodedString) throws IOException {
    String base64Str = URLDecoder.decode(encodedString, "UTF-8");
    byte[] decodedBytes = Base64.getDecoder().decode(base64Str);
    String jsonList = new String(decodedBytes, "UTF-8");
    TypeReference<List<ServiceRequester>> mapType = new TypeReference<List<ServiceRequester>>() {};
    List<ServiceRequester> requesterList = objectMapper.readValue(jsonList, mapType);
    return requesterList;
  }
public static List < ServiceRequester > deserialize ( String encodedString ) throws IOException { String base64Str = URLDecoder . decode ( encodedString , "UTF-8" ) ; byte [ ] decodedBytes = Base64 . getDecoder ( ) . decode ( base64Str ) ; String jsonList = new String ( decodedBytes , "UTF-8" ) ; TypeReference < List < ServiceRequester > > mapType = new TypeReference < List < ServiceRequester > > ( ) { } ; List < ServiceRequester > requesterList = objectMapper . readValue ( jsonList , mapType ) ; return requesterList ; }
<p> This implementation decode a given string encoded by
{@link #serialize(List)}.