GetDiagnosticsTree.deserialize constructor
- Map<
String, String> json, - DeserializeFinderFactory finderFactory, {
- String? path,
Deserializes this command from the value generated by serialize.
The path is the current path to the json object from the parent object.
Implementation
GetDiagnosticsTree.deserialize(super.json, super.finderFactory, {super.path})
: subtreeDepth = json.containsKey('subtreeDepth') ? int.parse(json['subtreeDepth']!) : 0,
includeProperties = json['includeProperties'] != 'false',
diagnosticsType = json.containsKey('diagnosticsType')
? _diagnosticsTypeIndex.lookupBySimpleName(
json['diagnosticsType']!,
path: path == null ? 'diagnosticsType' : '$path.diagnosticsType',
)
: throw ArgumentError.notNull(path == null ? 'diagnosticsType' : '$path.diagnosticsType'),
super.deserialize();