resolutionFromString method
Implementation
Resolution resolutionFromString() {
switch (this) {
case 'success':
return Resolution.success;
case 'operator_required':
return Resolution.operatorRequired;
case 'declined':
return Resolution.declined;
case 'failed':
return Resolution.failed;
default:
throw Exception('Incorrect resolution string $this');
}
}