GetDiagnosticsTree.deserialize constructor

GetDiagnosticsTree.deserialize(
  1. Map<String, String> json,
  2. DeserializeFinderFactory finderFactory, {
  3. 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();