fromJson static method

StepNames fromJson(
  1. String json
)

Implementation

static StepNames fromJson(String json) {
  return StepNames.values.firstWhere(
    (e) => e.value == json,
    orElse: () => throw ArgumentError('Unknown StepNames: $json'),
  );
}