transactionStatusFromInt function
Implementation
TransactionStatus transactionStatusFromInt(int? status) {
switch (status) {
case 0:
return TransactionStatus.done;
case 2:
return TransactionStatus.waiting;
case 4:
return TransactionStatus.expired;
case 6:
return TransactionStatus.canceled;
default:
return TransactionStatus.none;
}
}