toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return {
    'paymentType': paymentType.name,
    'currencyPosition': currencyPosition.name,
    'currencyCode': currencyCode,
    'creditType': creditType?.name,
    'installments': installments,
    'amount': (amount * 100).round().toString().padLeft(12, '0'),
    'callerId': callerId,
    'orderId': orderId,
  };
}