Rule.fromJson constructor

Rule.fromJson(
  1. Map json_
)

Implementation

Rule.fromJson(core.Map json_)
    : this(
        disjunctiveMatchStatements:
            json_.containsKey('disjunctiveMatchStatements')
                ? (json_['disjunctiveMatchStatements'] as core.List)
                    .map((value) => DisjunctiveMatchStatement.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                    .toList()
                : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
      );