fromJson static method

AgentSpeed fromJson(
  1. String value
)

Parses an AgentSpeed from JSON.

Implementation

static AgentSpeed fromJson(String value) => switch (value) {
  'standard' => AgentSpeed.standard,
  'fast' => AgentSpeed.fast,
  _ => AgentSpeed.unknown,
};