fromJson static method

AgentMode fromJson(
  1. String value
)

Implementation

static AgentMode fromJson(String value) {
  return AgentMode.values.firstWhere(
    (e) => e.name == value,
    orElse: () => AgentMode.interactive,
  );
}