boilerplate method

Map<String, dynamic> boilerplate ()

Implementation

Map<String, dynamic> boilerplate() {
  var payload = {
    'event': _event,
    'id': _uuid,
  };

  if (_token != null) {
    payload['token'] = _token;
  }

  return payload;
}