Response.fromJson constructor

Response.fromJson(
  1. Map json_
)

Implementation

Response.fromJson(core.Map json_)
    : this(
        backendLatency: json_.containsKey('backendLatency')
            ? json_['backendLatency'] as core.String
            : null,
        code: json_.containsKey('code') ? json_['code'] 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,
        size: json_.containsKey('size') ? json_['size'] as core.String : null,
        time: json_.containsKey('time') ? json_['time'] as core.String : null,
      );