@Beta
    public EventGridEvent[] deserializeEventGridEvents(final String requestContent, final SerializerAdapter<ObjectMapper> serializerAdapter) throws IOException {
        EventGridEvent[] eventGridEvents = serializerAdapter.<EventGridEvent[]>deserialize(requestContent, EventGridEvent[].class);
        for (EventGridEvent receivedEvent : eventGridEvents) {
            if (receivedEvent.data() == null) {
                continue;
            } else {
                final String eventType = receivedEvent.eventType();
                final Type eventDataType;
                if (SystemEventTypeMappings.containsMappingFor(eventType)) {
                    eventDataType = SystemEventTypeMappings.getMapping(eventType);
                } else if (containsCustomEventMappingFor(eventType)) {
                    eventDataType = getCustomEventMapping(eventType);
                } else {
                    eventDataType = null;
                }
                if (eventDataType != null) {
                    final String eventDataAsString = serializerAdapter.serializeRaw(receivedEvent.data());
                    final Object eventData = serializerAdapter.<Object>deserialize(eventDataAsString, eventDataType);
                    setEventData(receivedEvent, eventData);
                }
            }
        }
        return eventGridEvents;
    }
@ Beta public EventGridEvent [ ] deserializeEventGridEvents ( final String requestContent , final SerializerAdapter < ObjectMapper > serializerAdapter ) throws IOException { EventGridEvent [ ] eventGridEvents = serializerAdapter . < EventGridEvent [ ] > deserialize ( requestContent , EventGridEvent [ ] . class ) ; for ( EventGridEvent receivedEvent : eventGridEvents ) { if ( receivedEvent . data ( ) == null ) { continue ; } else { final String eventType = receivedEvent . eventType ( ) ; final Type eventDataType ; if ( SystemEventTypeMappings . containsMappingFor ( eventType ) ) { eventDataType = SystemEventTypeMappings . getMapping ( eventType ) ; } else if ( containsCustomEventMappingFor ( eventType ) ) { eventDataType = getCustomEventMapping ( eventType ) ; } else { eventDataType = null ; } if ( eventDataType != null ) { final String eventDataAsString = serializerAdapter . serializeRaw ( receivedEvent . data ( ) ) ; final Object eventData = serializerAdapter . < Object > deserialize ( eventDataAsString , eventDataType ) ; setEventData ( receivedEvent , eventData ) ; } } } return eventGridEvents ; }
De-serialize the events in the given requested content using the provided de-serializer.

@param requestContent the request content as string.
@param serializerAdapter the de-serializer.
@return de-serialized events.
@throws IOException