StringMatcher.fromJson constructor

StringMatcher.fromJson(
  1. Map json_
)

Implementation

StringMatcher.fromJson(core.Map json_)
    : this(
        contains: json_.containsKey('contains')
            ? json_['contains'] as core.String
            : null,
        exact:
            json_.containsKey('exact') ? json_['exact'] as core.String : null,
        ignoreCase: json_.containsKey('ignoreCase')
            ? json_['ignoreCase'] as core.bool
            : null,
        prefix: json_.containsKey('prefix')
            ? json_['prefix'] as core.String
            : null,
        safeRegex: json_.containsKey('safeRegex')
            ? RegexMatcher.fromJson(
                json_['safeRegex'] as core.Map<core.String, core.dynamic>)
            : null,
        suffix: json_.containsKey('suffix')
            ? json_['suffix'] as core.String
            : null,
      );