HttpBody constructor

HttpBody({
  1. String? contentType,
  2. List<int>? data,
  3. Iterable<Any>? extensions,
})

Implementation

factory HttpBody({
  $core.String? contentType,
  $core.List<$core.int>? data,
  $core.Iterable<$1.Any>? extensions,
}) {
  final _result = create();
  if (contentType != null) {
    _result.contentType = contentType;
  }
  if (data != null) {
    _result.data = data;
  }
  if (extensions != null) {
    _result.extensions.addAll(extensions);
  }
  return _result;
}