toJson method

Map<String, dynamic> toJson()

Implementation

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