FlutterSetWidgetPropertyValueResult.fromJson constructor
FlutterSetWidgetPropertyValueResult.fromJson()
Implementation
factory FlutterSetWidgetPropertyValueResult.fromJson(
JsonDecoder jsonDecoder, String jsonPath, Object? json) {
json ??= {};
if (json is Map) {
SourceChange change;
if (json.containsKey('change')) {
change = SourceChange.fromJson(
jsonDecoder, '$jsonPath.change', json['change']);
} else {
throw jsonDecoder.mismatch(jsonPath, 'change');
}
return FlutterSetWidgetPropertyValueResult(change);
} else {
throw jsonDecoder.mismatch(
jsonPath, 'flutter.setWidgetPropertyValue result', json);
}
}