AttackPath.fromJson constructor

AttackPath.fromJson(
  1. Map json_
)

Implementation

AttackPath.fromJson(core.Map json_)
    : this(
        edges: json_.containsKey('edges')
            ? (json_['edges'] as core.List)
                .map((value) => AttackPathEdge.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        pathNodes: json_.containsKey('pathNodes')
            ? (json_['pathNodes'] as core.List)
                .map((value) => AttackPathNode.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );