HttpRouteRouteMatch.fromJson constructor

HttpRouteRouteMatch.fromJson(
  1. Map json_
)

Implementation

HttpRouteRouteMatch.fromJson(core.Map json_)
    : this(
        fullPathMatch: json_.containsKey('fullPathMatch')
            ? json_['fullPathMatch'] as core.String
            : null,
        headers: json_.containsKey('headers')
            ? (json_['headers'] as core.List)
                .map((value) => HttpRouteHeaderMatch.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        ignoreCase: json_.containsKey('ignoreCase')
            ? json_['ignoreCase'] as core.bool
            : null,
        prefixMatch: json_.containsKey('prefixMatch')
            ? json_['prefixMatch'] as core.String
            : null,
        queryParameters: json_.containsKey('queryParameters')
            ? (json_['queryParameters'] as core.List)
                .map((value) => HttpRouteQueryParameterMatch.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        regexMatch: json_.containsKey('regexMatch')
            ? json_['regexMatch'] as core.String
            : null,
      );