toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case EntityStatus.pending:
      return 'PENDING';
    case EntityStatus.inprogress:
      return 'INPROGRESS';
    case EntityStatus.failed:
      return 'FAILED';
    case EntityStatus.completed:
      return 'COMPLETED';
    case EntityStatus.deleted:
      return 'DELETED';
  }
}