Psubscribe.fromResult constructor

Psubscribe.fromResult(
  1. List<RespType>? result
)

Implementation

factory Psubscribe.fromResult(List<RespType<dynamic>>? result) {
  final _type = result![0].toBulkString().payload;
  final _pattern = result[1].toBulkString().payload;
  final _channel = result[2].toBulkString().payload;
  final _message = result[3].toBulkString().payload;
  return Psubscribe(
      type: _type, pattern: _pattern, channel: _channel, message: _message);
}