toMap method

Map<String, dynamic> toMap()

Implementation

Map<String, dynamic> toMap() {
  return {
    'tran_id': tranId,
    'req_time': reqTime,
    'amount': amount,
    'items': items.map((x) => x.toMap()).toList(),
    'firstname': firstname,
    'lastname': lastname,
    'phone': phone,
    'email': email,
    'return_url': returnUrl ?? '',
    'continue_success_url': continueSuccessUrl ?? '',
    'return_params': returnParams ?? '',
    'shipping': shipping,
    'type': type.name,
    'payment_option': option.name,
    'currency': currency.name,
  };
}