RADRetrieve constructor

RADRetrieve({
  1. RADType? kind,
  2. String? url,
  3. List<int>? script,
  4. List<int>? body = null,
  5. Iterable<StringPair>? headers,
})

Implementation

factory RADRetrieve({
  RADType? kind,
  String? url,
  List<int>? script,
  List<int>? body = null,
  Iterable<StringPair>? headers,
}) {
  final _result = create();
  _result.kind = ((kind != null) ? kind : null)!;

  if (kind != null) {
    _result.kind = kind;
  }
  if (url != null) {
    _result.url = url;
  }
  if (script != null) {
    _result.script = script;
  }
  if (body != null) {
    _result.body = body;
  }
  if (headers != null) {
    _result.headers.addAll(headers);
  }
  return _result;
}