fromJson static method

SkillSource fromJson(
  1. String value
)

Converts a string to SkillSource.

Implementation

static SkillSource fromJson(String value) => switch (value) {
  'custom' => SkillSource.custom,
  'anthropic' => SkillSource.anthropic,
  _ => throw FormatException('Unknown SkillSource: $value'),
};