fromString static method
- String? value
Get the Endorsement from a String.
Implementation
static Endorsement? fromString(String? value) {
switch (value) {
case 'ADDRESS_SERVICE_REQUESTED':
return addressServiceRequested;
case 'FORWARDING_SERVICE_REQUESTED':
return forwardingServiceRequested;
case 'CHANGE_SERVICE_REQUESTED':
return changeServiceRequested;
case 'RETURN_SERVICE_REQUESTED':
return returnServiceRequested;
case 'LEAVE_IF_NO_RESPONSE':
return leaveIfNoResponse;
default:
return null;
}
}