formatRelayParams static method
Implementation
static Map<String, String> formatRelayParams(
Relay relay, {
String delimiter = '-',
}) {
Map<String, String> params = {};
params[['relay', 'protocol'].join(delimiter)] = relay.protocol;
if (relay.data != null) {
params[['relay', 'data'].join(delimiter)] = relay.data!;
}
return params;
}