fromJson static method
Parses an AgentSpeed from JSON.
Implementation
static AgentSpeed fromJson(String value) => switch (value) {
'standard' => AgentSpeed.standard,
'fast' => AgentSpeed.fast,
_ => AgentSpeed.unknown,
};
Parses an AgentSpeed from JSON.
static AgentSpeed fromJson(String value) => switch (value) {
'standard' => AgentSpeed.standard,
'fast' => AgentSpeed.fast,
_ => AgentSpeed.unknown,
};