def valid?
      return false if @id.nil?
      return false if @date.nil?
      return false if @amount.nil?
      return false if @memo.nil?
      return false if @cleared.nil?
      cleared_validator = EnumAttributeValidator.new('String', ['cleared', 'uncleared', 'reconciled'])
      return false unless cleared_validator.valid?(@cleared)
      return false if @approved.nil?
      return false if @flag_color.nil?
      flag_color_validator = EnumAttributeValidator.new('String', ['red', 'orange', 'yellow', 'green', 'blue', 'purple'])
      return false unless flag_color_validator.valid?(@flag_color)
      return false if @account_id.nil?
      return false if @payee_id.nil?
      return false if @category_id.nil?
      return false if @transfer_account_id.nil?
      return false if @transfer_transaction_id.nil?
      return false if @matched_transaction_id.nil?
      return false if @import_id.nil?
      return false if @deleted.nil?
      true
    end
def valid?
      return false if @id.nil?
      return false if @date.nil?
      return false if @amount.nil?
      return false if @memo.nil?
      return false if @cleared.nil?
      cleared_validator = EnumAttributeValidator.new('String', ['cleared', 'uncleared', 'reconciled'])
      return false unless cleared_validator.valid?(@cleared)
      return false if @approved.nil?
      return false if @flag_color.nil?
      flag_color_validator = EnumAttributeValidator.new('String', ['red', 'orange', 'yellow', 'green', 'blue', 'purple'])
      return false unless flag_color_validator.valid?(@flag_color)
      return false if @account_id.nil?
      return false if @payee_id.nil?
      return false if @category_id.nil?
      return false if @transfer_account_id.nil?
      return false if @transfer_transaction_id.nil?
      return false if @matched_transaction_id.nil?
      return false if @import_id.nil?
      return false if @deleted.nil?
      true
    end
Check to see if the all the properties in the model are valid
 @return true if the model is valid