EditImportElementsResult.fromJson constructor
EditImportElementsResult.fromJson(
- JsonDecoder jsonDecoder,
- String jsonPath,
- Object? json
)
Implementation
factory EditImportElementsResult.fromJson(
JsonDecoder jsonDecoder, String jsonPath, Object? json) {
json ??= {};
if (json is Map) {
SourceFileEdit? edit;
if (json.containsKey('edit')) {
edit = SourceFileEdit.fromJson(
jsonDecoder, '$jsonPath.edit', json['edit']);
}
return EditImportElementsResult(edit: edit);
} else {
throw jsonDecoder.mismatch(jsonPath, 'edit.importElements result', json);
}
}