AppEngineHttpRequest.fromJson constructor

AppEngineHttpRequest.fromJson(
  1. Map json_
)

Implementation

AppEngineHttpRequest.fromJson(core.Map json_)
    : this(
        appEngineRouting: json_.containsKey('appEngineRouting')
            ? AppEngineRouting.fromJson(json_['appEngineRouting']
                as core.Map<core.String, core.dynamic>)
            : null,
        body: json_.containsKey('body') ? json_['body'] as core.String : 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,
        httpMethod: json_.containsKey('httpMethod')
            ? json_['httpMethod'] as core.String
            : null,
        relativeUri: json_.containsKey('relativeUri')
            ? json_['relativeUri'] as core.String
            : null,
      );