HostRule.fromJson constructor

HostRule.fromJson(
  1. Map json_
)

Implementation

HostRule.fromJson(core.Map json_)
    : this(
        description: json_.containsKey('description')
            ? json_['description'] as core.String
            : null,
        hosts: json_.containsKey('hosts')
            ? (json_['hosts'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        pathMatcher: json_.containsKey('pathMatcher')
            ? json_['pathMatcher'] as core.String
            : null,
      );