old_contents: import json
  
  try:
      import sqlalchemy
      import sqlalchemy.types
      import sqlalchemy.ext.declarative
      sqlalchemy_imported = True
  except ImportError:
      sqlalchemy_imported = False
  
  class CassiopeiaDto(object):
      """A Python representation of an object returned by the RiotAPI"""
  
      def __init__(self, dictionary):
          """
          dictionary    dict    the JSON data returned from the Riot API as a dict
          """
          for k,v in dictionary.items():
              setattr(self, k, v)
  
      def to_json(self, **kwargs):
          """Gets a JSON representation of the object
          
          return    str    a JSON representation of the object
          """
          dictionary = {k: v for k,v in self.__dict__.items() if not k.startswith("_")}
          default = kwargs.get('default', lambda o: o.__dict__)
          sort_keys=kwargs.get('sort_keys', True)
          indent=kwargs.get('indent', 4)
          return json.dumps(dictionary, default=default, sort_keys=sort_keys, indent=indent)
  
      def __str__(self):
          return self.to_json()
  
      def __repr__(self):
          return "{class_}({dict_})".format(class_=self.__class__.__name__, dict_=self.__dict__)
  
      def __eq__(self, other):
          return self.__dict__ == other.__dict__ if other else False
  
      def __ne__(self, other):
          return self.__dict__ != other.__dict__ if other else True
  
      def __hash__(self):
          return hash(id(self))
  
  if(sqlalchemy_imported):
      BaseDB = sqlalchemy.ext.declarative.declarative_base()
  
      class JSONEncoded(sqlalchemy.types.TypeDecorator):
          """JSON encoded storage for SQLAlchemy"""
  
          impl = sqlalchemy.Text
  
          def process_bind_param(self, value, dialect):
              if value is not None:
                  value = json.dumps(value)
              return value
  
          def process_result_value(self, value, dialect):
              if value is not None:
                  value = json.loads(value)
              return value
new_contents: import json
  
  try:
      import sqlalchemy
      import sqlalchemy.types
      import sqlalchemy.ext.declarative
      sqlalchemy_imported = True
  except ImportError:
      sqlalchemy_imported = False
  
  class CassiopeiaDto(object):
      """A Python representation of an object returned by the RiotAPI"""
  
      def __init__(self, dictionary):
          """
          dictionary    dict    the JSON data returned from the Riot API as a dict
          """
          for k,v in dictionary.items():
              setattr(self, k, v)
  
      def to_json(self, **kwargs):
          """Gets a JSON representation of the object
          
          return    str    a JSON representation of the object
          """
          dictionary = {k: v for k,v in self.__dict__.items() if not k.startswith("_")}
          default = kwargs.pop('default', lambda o: o.__dict__)
          sort_keys = kwargs.pop('sort_keys', True)
          indent = kwargs.pop('indent', 4)
          return json.dumps(dictionary, default=default, sort_keys=sort_keys, indent=indent, **kwargs)
  
      def __str__(self):
          return self.to_json()
  
      def __repr__(self):
          return "{class_}({dict_})".format(class_=self.__class__.__name__, dict_=self.__dict__)
  
      def __eq__(self, other):
          return self.__dict__ == other.__dict__ if other else False
  
      def __ne__(self, other):
          return self.__dict__ != other.__dict__ if other else True
  
      def __hash__(self):
          return hash(id(self))
  
  if(sqlalchemy_imported):
      BaseDB = sqlalchemy.ext.declarative.declarative_base()
  
      class JSONEncoded(sqlalchemy.types.TypeDecorator):
          """JSON encoded storage for SQLAlchemy"""
  
          impl = sqlalchemy.Text
  
          def process_bind_param(self, value, dialect):
              if value is not None:
                  value = json.dumps(value)
              return value
  
          def process_result_value(self, value, dialect):
              if value is not None:
                  value = json.loads(value)
              return value
  
subject: Allow to pass all the arguments json.dumps accept, instead of only the 3 which were set with different values