private static Map<String, PasswordlessUserAccount> readFromResource(final Resource resource) {
        return FunctionUtils.doUnchecked(() -> {
            try (val in = resource.getInputStream()) {
                return MAPPER.readValue(in, new TypeReference<>() {
                });
            }
        });
    }
This is {@link GroovyPasswordlessUserAccountStore}.

@author Misagh Moayyed
@since 5.3.0
support/cas-server-support-passwordless-api/src/main/java/org/apereo/cas/impl/account/JsonPasswordlessUserAccountStore.java