$HttpBody.fromJson constructor

$HttpBody.fromJson(
  1. Map _json
)

Implementation

$HttpBody.fromJson(core.Map _json)
    : this(
        contentType: _json.containsKey('contentType')
            ? _json['contentType'] as core.String
            : null,
        data: _json.containsKey('data') ? _json['data'] as core.String : null,
        extensions: _json.containsKey('extensions')
            ? (_json['extensions'] as core.List)
                .map((value) => value as core.Map<core.String, core.dynamic>)
                .toList()
            : null,
      );