def make_transaction(self, data): returned_resultset = data.pop('returned_resultset', []) result = MutableDictionaryObject(data) result.transactions = [ DictionaryObject(resultset) for resultset in returned_resultset ] return result
def make_wallet(self, data): returned_resultset = data.pop('returned_resultset', []) result = MutableDictionaryObject(data) result.wallets = [ DictionaryObject(resultset) for resultset in returned_resultset ] return result