fromWire static method

StepPhase fromWire(
  1. String s
)

Implementation

static StepPhase fromWire(String s) {
  switch (s) {
    case 'searching':
      return StepPhase.searching;
    case 'disambiguating':
      return StepPhase.disambiguating;
    case 'executing':
      return StepPhase.executing;
    case 'verifying':
      return StepPhase.verifying;
    default:
      throw FormatException('Unknown step_phase value: $s');
  }
}