ContentMatcher.fromJson constructor

ContentMatcher.fromJson(
  1. Map json_
)

Implementation

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