toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
  'message': message,
  'title': title,
  'custom_ref': customRef,
  'amount': amount,
  'api_response_code': apiResponseCode.code,
  'currency': currency,
  'payment_status': paymentStatus.name,
  'system_ref': systemRef,
  'transaction_id': transactionId,
  'identifier': identifier,
  'success_redirect_url': successRedirectUrl,
  'fail_redirect_url': failRedirectUrl,
  'timestamp': timestamp?.toIso8601String(),
  'metadata': metadata,
};