Data constructor

Data({
  1. String? type,
  2. List<int>? payload,
})

Implementation

factory Data({
  $core.String? type,
  $core.List<$core.int>? payload,
}) {
  final _result = create();
  if (type != null) {
    _result.type = type;
  }
  if (payload != null) {
    _result.payload = payload;
  }
  return _result;
}