HttpRequestContext.fromJson constructor

HttpRequestContext.fromJson(
  1. Map json_
)

Implementation

HttpRequestContext.fromJson(core.Map json_)
    : this(
        method: json_.containsKey('method')
            ? json_['method'] as core.String
            : null,
        referrer: json_.containsKey('referrer')
            ? json_['referrer'] as core.String
            : null,
        remoteIp: json_.containsKey('remoteIp')
            ? json_['remoteIp'] as core.String
            : null,
        responseStatusCode: json_.containsKey('responseStatusCode')
            ? json_['responseStatusCode'] as core.int
            : null,
        url: json_.containsKey('url') ? json_['url'] as core.String : null,
        userAgent: json_.containsKey('userAgent')
            ? json_['userAgent'] as core.String
            : null,
      );