generateTransactionFromResponse

fun generateTransactionFromResponse(response: Response<ResponseBody?>): MomoTransaction?

Generates a MomoTransaction object from the given response.

Return

A MomoTransaction object, or null if the response body is empty.

Parameters

response

The response containing the transaction data.