formatRelayParams static method

Map<String, String> formatRelayParams(
  1. Relay relay, {
  2. String delimiter = '-',
})

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;
}