

def getJsonForInstance(self, instance):
    instance_data = instance.data
    instance_data['_id'] = instance.external_id
    instance_data['_date_created'] = instance.date_created.isoformat()
    instance_data['_date_modified'] = instance.date_modified.isoformat()
    instance_data['_model'] = instance.model.external_id
    return instance_data

dataset/ETHPy150Open mohawkhq/mohawk-data-platform/data/tests.py TestData.getJsonForInstance/original