HttpRequest.fromJson constructor

HttpRequest.fromJson(
  1. Map json_
)

Implementation

HttpRequest.fromJson(core.Map json_)
    : this(
        cacheFillBytes: json_.containsKey('cacheFillBytes')
            ? json_['cacheFillBytes'] as core.String
            : null,
        cacheHit: json_.containsKey('cacheHit')
            ? json_['cacheHit'] as core.bool
            : null,
        cacheLookup: json_.containsKey('cacheLookup')
            ? json_['cacheLookup'] as core.bool
            : null,
        cacheValidatedWithOriginServer:
            json_.containsKey('cacheValidatedWithOriginServer')
                ? json_['cacheValidatedWithOriginServer'] as core.bool
                : null,
        latency: json_.containsKey('latency')
            ? json_['latency'] as core.String
            : null,
        protocol: json_.containsKey('protocol')
            ? json_['protocol'] as core.String
            : null,
        referer: json_.containsKey('referer')
            ? json_['referer'] as core.String
            : null,
        remoteIp: json_.containsKey('remoteIp')
            ? json_['remoteIp'] as core.String
            : null,
        requestMethod: json_.containsKey('requestMethod')
            ? json_['requestMethod'] as core.String
            : null,
        requestSize: json_.containsKey('requestSize')
            ? json_['requestSize'] as core.String
            : null,
        requestUrl: json_.containsKey('requestUrl')
            ? json_['requestUrl'] as core.String
            : null,
        responseSize: json_.containsKey('responseSize')
            ? json_['responseSize'] as core.String
            : null,
        serverIp: json_.containsKey('serverIp')
            ? json_['serverIp'] as core.String
            : null,
        status:
            json_.containsKey('status') ? json_['status'] as core.int : null,
        userAgent: json_.containsKey('userAgent')
            ? json_['userAgent'] as core.String
            : null,
      );