statusFromInt function
Implementation
NewTransactionResponseStatus statusFromInt(int? status) {
if (status == null) return NewTransactionResponseStatus.none;
switch (status) {
case 0:
return NewTransactionResponseStatus.success;
case 2:
return NewTransactionResponseStatus.invalidToken;
case 4:
return NewTransactionResponseStatus.invalidParameters;
case 6:
return NewTransactionResponseStatus.identierExists;
default:
return NewTransactionResponseStatus.none;
}
}