LinkedEditSuggestionKind.fromJson constructor

LinkedEditSuggestionKind.fromJson(
  1. JsonDecoder jsonDecoder,
  2. String jsonPath,
  3. Object? json
)

Implementation

factory LinkedEditSuggestionKind.fromJson(
    JsonDecoder jsonDecoder, String jsonPath, Object? json) {
  if (json is String) {
    try {
      return LinkedEditSuggestionKind(json);
    } catch (_) {
      // Fall through
    }
  }
  throw jsonDecoder.mismatch(jsonPath, 'LinkedEditSuggestionKind', json);
}