toRequirePin method
Implementation
RequirePin toRequirePin() {
switch (this) {
case 'YES':
return RequirePin.yes;
case 'NO':
return RequirePin.no;
case 'OPTIONAL':
return RequirePin.optional;
}
throw Exception('$this is not known in enum RequirePin');
}