toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case AgentUpdateStatus.pending:
      return 'PENDING';
    case AgentUpdateStatus.staging:
      return 'STAGING';
    case AgentUpdateStatus.staged:
      return 'STAGED';
    case AgentUpdateStatus.updating:
      return 'UPDATING';
    case AgentUpdateStatus.updated:
      return 'UPDATED';
    case AgentUpdateStatus.failed:
      return 'FAILED';
  }
}