toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case Status.completed:
      return 'completed';
    case Status.pending:
      return 'pending';
    case Status.error:
      return 'error';
  }
}