Request.fromJson constructor

Request.fromJson(
  1. Map json_
)

Implementation

Request.fromJson(core.Map json_)
    : this(
        auth: json_.containsKey('auth')
            ? Auth.fromJson(
                json_['auth'] as core.Map<core.String, core.dynamic>)
            : null,
        headers: json_.containsKey('headers')
            ? (json_['headers'] as core.Map<core.String, core.dynamic>).map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
        host: json_.containsKey('host') ? json_['host'] as core.String : null,
        id: json_.containsKey('id') ? json_['id'] as core.String : null,
        method: json_.containsKey('method')
            ? json_['method'] as core.String
            : null,
        path: json_.containsKey('path') ? json_['path'] as core.String : null,
        protocol: json_.containsKey('protocol')
            ? json_['protocol'] as core.String
            : null,
        query:
            json_.containsKey('query') ? json_['query'] as core.String : null,
        reason: json_.containsKey('reason')
            ? json_['reason'] as core.String
            : null,
        scheme: json_.containsKey('scheme')
            ? json_['scheme'] as core.String
            : null,
        size: json_.containsKey('size') ? json_['size'] as core.String : null,
        time: json_.containsKey('time') ? json_['time'] as core.String : null,
      );