HttpRouteRedirect.fromJson constructor

HttpRouteRedirect.fromJson(
  1. Map json_
)

Implementation

HttpRouteRedirect.fromJson(core.Map json_)
    : this(
        hostRedirect: json_.containsKey('hostRedirect')
            ? json_['hostRedirect'] as core.String
            : null,
        httpsRedirect: json_.containsKey('httpsRedirect')
            ? json_['httpsRedirect'] as core.bool
            : null,
        pathRedirect: json_.containsKey('pathRedirect')
            ? json_['pathRedirect'] as core.String
            : null,
        portRedirect: json_.containsKey('portRedirect')
            ? json_['portRedirect'] as core.int
            : null,
        prefixRewrite: json_.containsKey('prefixRewrite')
            ? json_['prefixRewrite'] as core.String
            : null,
        responseCode: json_.containsKey('responseCode')
            ? json_['responseCode'] as core.String
            : null,
        stripQuery: json_.containsKey('stripQuery')
            ? json_['stripQuery'] as core.bool
            : null,
      );