HttpRouteRuleMatch.fromJson constructor

HttpRouteRuleMatch.fromJson(
  1. Map json_
)

Implementation

HttpRouteRuleMatch.fromJson(core.Map json_)
    : this(
        fullPathMatch: json_.containsKey('fullPathMatch')
            ? json_['fullPathMatch'] as core.String
            : null,
        headerMatches: json_.containsKey('headerMatches')
            ? (json_['headerMatches'] as core.List)
                .map((value) => HttpHeaderMatch.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        ignoreCase: json_.containsKey('ignoreCase')
            ? json_['ignoreCase'] as core.bool
            : null,
        metadataFilters: json_.containsKey('metadataFilters')
            ? (json_['metadataFilters'] as core.List)
                .map((value) => MetadataFilter.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        pathTemplateMatch: json_.containsKey('pathTemplateMatch')
            ? json_['pathTemplateMatch'] as core.String
            : null,
        prefixMatch: json_.containsKey('prefixMatch')
            ? json_['prefixMatch'] as core.String
            : null,
        queryParameterMatches: json_.containsKey('queryParameterMatches')
            ? (json_['queryParameterMatches'] as core.List)
                .map((value) => HttpQueryParameterMatch.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        regexMatch: json_.containsKey('regexMatch')
            ? json_['regexMatch'] as core.String
            : null,
      );