protected MultifactorAuthenticationRegisteredDevice mapMultifactorAuthenticationTrustRecord(
        final RequestContext requestContext, final MultifactorAuthenticationTrustRecord device) {
        val applicationContext = requestContext.getActiveFlow().getApplicationContext();
        val source = MultifactorAuthenticationUtils.getMultifactorAuthenticationProviderById(device.getMultifactorAuthenticationProvider(), applicationContext)
            .map(MultifactorAuthenticationProvider::getFriendlyName)
            .orElse("Unknown");
        val expirationDate = DateTimeUtils.zonedDateTimeOf(device.getExpirationDate());
        return MultifactorAuthenticationRegisteredDevice.builder()
            .id(String.valueOf(device.getId()))
            .model(device.getRecordKey())
            .type(device.getDeviceFingerprint())
            .name(device.getName())
            .payload(device.toJson())
            .expirationDateTime(expirationDate != null ? expirationDate.toString() : null)
            .lastUsedDateTime(device.getRecordDate().toString())
            .source(source)
            .build();
    }
This is {@link DefaultMultifactorAuthenticationTrustedDeviceProviderAction}.

@author Misagh Moayyed
@since 7.0.0
support/cas-server-support-trusted-mfa-core/src/main/java/org/apereo/cas/trusted/web/flow/DefaultMultifactorAuthenticationTrustedDeviceProviderAction.java