toMap method
toMap
return
map object
Implementation
Map<String, dynamic> toMap() {
var map = {
"merchant_id": merchant!.merchantID,
"req_time": reqTime,
"tran_id": tranID,
"amount": amount,
"items": encodedItem,
"hash": hash,
"firstname": firstname,
"lastname": lastname,
"phone": phone,
"email": email,
"return_url": encodedReturnUrl,
"continue_success_url": continueSuccessUrl ?? "",
"return_params": returnParams ?? "",
"shipping": shipping,
"type": type.name,
"payment_option": option.name,
"currency": currency.name,
};
return map;
}