fromString static method

Command fromString(
  1. String str
)

Implementation

static Command fromString(String str) => switch (str) {
      'create' => create,
      _ => none,
    };