NodeMatcher.fromJson constructor

NodeMatcher.fromJson(
  1. Map json_
)

Implementation

NodeMatcher.fromJson(core.Map json_)
    : this(
        nodeId: json_.containsKey('nodeId')
            ? StringMatcher.fromJson(
                json_['nodeId'] as core.Map<core.String, core.dynamic>)
            : null,
        nodeMetadatas: (json_['nodeMetadatas'] as core.List?)
            ?.map((value) => StructMatcher.fromJson(
                value as core.Map<core.String, core.dynamic>))
            .toList(),
      );