toValue method
Implementation
String toValue() {
switch (this) {
case EmailStatus.notSent:
return 'NotSent';
case EmailStatus.sent:
return 'Sent';
case EmailStatus.failed:
return 'Failed';
}
}
String toValue() {
switch (this) {
case EmailStatus.notSent:
return 'NotSent';
case EmailStatus.sent:
return 'Sent';
case EmailStatus.failed:
return 'Failed';
}
}