public static RedisTicketDocument from(final Map<String, String> document) {
        return RedisTicketDocument
            .builder()
            .type(document.get(FIELD_NAME_TYPE))
            .ticketId(document.get(FIELD_NAME_ID))
            .json(document.get(FIELD_NAME_JSON))
            .prefix(document.get(FIELD_NAME_PREFIX))
            .principal(document.get(FIELD_NAME_PRINCIPAL))
            .attributes(document.get(FIELD_NAME_ATTRIBUTES))
            .service(document.get(FIELD_NAME_SERVICE))
            .build();
    }
From document map to redis document.

@param document the document
@return the redis ticket document
support/cas-server-support-redis-ticket-registry/src/main/java/org/apereo/cas/ticket/registry/RedisTicketDocument.java