EditIsPostfixCompletionApplicableResult.fromJson constructor
EditIsPostfixCompletionApplicableResult.fromJson()
Implementation
factory EditIsPostfixCompletionApplicableResult.fromJson(
JsonDecoder jsonDecoder, String jsonPath, Object? json) {
json ??= {};
if (json is Map) {
bool value;
if (json.containsKey('value')) {
value = jsonDecoder.decodeBool('$jsonPath.value', json['value']);
} else {
throw jsonDecoder.mismatch(jsonPath, 'value');
}
return EditIsPostfixCompletionApplicableResult(value);
} else {
throw jsonDecoder.mismatch(
jsonPath, 'edit.isPostfixCompletionApplicable result', json);
}
}