PlanNode.fromJson constructor

PlanNode.fromJson(
  1. Map json_
)

Implementation

PlanNode.fromJson(core.Map json_)
    : this(
        childLinks: json_.containsKey('childLinks')
            ? (json_['childLinks'] as core.List)
                .map((value) => ChildLink.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        displayName: json_.containsKey('displayName')
            ? json_['displayName'] as core.String
            : null,
        executionStats: json_.containsKey('executionStats')
            ? json_['executionStats'] as core.Map<core.String, core.dynamic>
            : null,
        index: json_.containsKey('index') ? json_['index'] as core.int : null,
        kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
        metadata: json_.containsKey('metadata')
            ? json_['metadata'] as core.Map<core.String, core.dynamic>
            : null,
        shortRepresentation: json_.containsKey('shortRepresentation')
            ? ShortRepresentation.fromJson(json_['shortRepresentation']
                as core.Map<core.String, core.dynamic>)
            : null,
      );