$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,
      );