toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case AssignmentStatus.submitted:
      return 'Submitted';
    case AssignmentStatus.approved:
      return 'Approved';
    case AssignmentStatus.rejected:
      return 'Rejected';
  }
}