toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case TrustState.creating:
      return 'Creating';
    case TrustState.created:
      return 'Created';
    case TrustState.verifying:
      return 'Verifying';
    case TrustState.verifyFailed:
      return 'VerifyFailed';
    case TrustState.verified:
      return 'Verified';
    case TrustState.updating:
      return 'Updating';
    case TrustState.updateFailed:
      return 'UpdateFailed';
    case TrustState.updated:
      return 'Updated';
    case TrustState.deleting:
      return 'Deleting';
    case TrustState.deleted:
      return 'Deleted';
    case TrustState.failed:
      return 'Failed';
  }
}