@JsonIgnore
    public Gender getGender() {
        return getAttributeAsType(CommonProfileDefinition.GENDER, Gender.class, Gender.UNSPECIFIED);
    }
Return the gender of the user.

@return the gender of the user
pac4j-core/src/main/java/org/pac4j/core/profile/CommonProfile.java