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,
      );