def valid?
      return false if @id.nil?
      return false if @name.nil?
      return false if @email.nil?
      return false if @order.nil?
      return false if @fields.nil?
      return false if @metadata.nil?
      return false if @state.nil?
      state_validator = EnumAttributeValidator.new('String', ['pending', 'completed'])
      return false unless state_validator.valid?(@state)
      auth_type_validator = EnumAttributeValidator.new('String', ['none', 'password', 'oauth', 'email_link', 'phone_number', 'ldap', 'saml'])
      return false unless auth_type_validator.valid?(@auth_type)
      auth_second_factor_type_validator = EnumAttributeValidator.new('String', ['none', 'phone_number', 'totp', 'mobile_push', 'security_key', 'fingerprint'])
      return false unless auth_second_factor_type_validator.valid?(@auth_second_factor_type)
      true
    end
def valid?
      return false if @id.nil?
      return false if @name.nil?
      return false if @email.nil?
      return false if @order.nil?
      return false if @fields.nil?
      return false if @metadata.nil?
      return false if @state.nil?
      state_validator = EnumAttributeValidator.new('String', ['pending', 'completed'])
      return false unless state_validator.valid?(@state)
      auth_type_validator = EnumAttributeValidator.new('String', ['none', 'password', 'oauth', 'email_link', 'phone_number', 'ldap', 'saml'])
      return false unless auth_type_validator.valid?(@auth_type)
      auth_second_factor_type_validator = EnumAttributeValidator.new('String', ['none', 'phone_number', 'totp', 'mobile_push', 'security_key', 'fingerprint'])
      return false unless auth_second_factor_type_validator.valid?(@auth_second_factor_type)
      true
    end
Check to see if the all the properties in the model are valid
 @return true if the model is valid