def serialize(self):
    return {'id': self.id, 'from_address': self.from_address, 'to_address': self.to_address, 'amount': self.amount}
def serialize(self):
    return {'id': self.id, 'from_address': self.from_address, 'to_address': self.to_address, 'amount': self.amount}