ContentMatcher.fromJson constructor

ContentMatcher.fromJson(
  1. Map json_
)

Implementation

ContentMatcher.fromJson(core.Map json_)
  : this(
      content: json_['content'] as core.String?,
      jsonPathMatcher:
          json_.containsKey('jsonPathMatcher')
              ? JsonPathMatcher.fromJson(
                json_['jsonPathMatcher']
                    as core.Map<core.String, core.dynamic>,
              )
              : null,
      matcher: json_['matcher'] as core.String?,
    );