@classmethod
def dump(cls, filename):
    """
        Writes the contents of this model's table as JSON to the given filename
        """
    with open(filename, 'w') as out:
        out.write(cls.dumps())
