ValueMatcher.fromJson constructor

ValueMatcher.fromJson(
  1. Map json_
)

Implementation

ValueMatcher.fromJson(core.Map json_)
    : this(
        boolMatch: json_.containsKey('boolMatch')
            ? json_['boolMatch'] as core.bool
            : null,
        doubleMatch: json_.containsKey('doubleMatch')
            ? DoubleMatcher.fromJson(
                json_['doubleMatch'] as core.Map<core.String, core.dynamic>)
            : null,
        listMatch: json_.containsKey('listMatch')
            ? ListMatcher.fromJson(
                json_['listMatch'] as core.Map<core.String, core.dynamic>)
            : null,
        nullMatch: json_.containsKey('nullMatch')
            ? NullMatch.fromJson(
                json_['nullMatch'] as core.Map<core.String, core.dynamic>)
            : null,
        orMatch: json_.containsKey('orMatch')
            ? OrMatcher.fromJson(
                json_['orMatch'] as core.Map<core.String, core.dynamic>)
            : null,
        presentMatch: json_.containsKey('presentMatch')
            ? json_['presentMatch'] as core.bool
            : null,
        stringMatch: json_.containsKey('stringMatch')
            ? StringMatcher.fromJson(
                json_['stringMatch'] as core.Map<core.String, core.dynamic>)
            : null,
      );