toValue method
Implementation
String toValue() {
switch (this) {
case ShareStatus.notStarted:
return 'NOT_STARTED';
case ShareStatus.inProgress:
return 'IN_PROGRESS';
case ShareStatus.completed:
return 'COMPLETED';
case ShareStatus.completedWithErrors:
return 'COMPLETED_WITH_ERRORS';
case ShareStatus.error:
return 'ERROR';
}
}