GraphQLSource static method
Implementation
static RADRetrieve GraphQLSource(
String url, String body, Map<String, String> headers, dynamic script,
[RADType kind = RADType.HttpPost]) {
String _body = _formatBody(body);
return RADRetrieve(
kind: kind,
url: url,
script: radToCbor(script.encode()),
body: stringToBytes(_body),
headers: List<StringPair>.from(headers.entries
.toList()
.map((e) => StringPair(left: e.key, right: e.value))));
}