Execute.fromResult constructor
Execute.fromResult(
- RespType result
Implementation
factory Execute.fromResult(RespType<dynamic> result) {
return result.handleAs<Execute>(
integer: (type) => Execute(list: [type.payload.toString()]),
simple: (type) => Execute(list: [type.payload]),
bulk: (type) => Execute(list: type.toBulkString().payload!.split("\r\n")),
array: (type) =>
Execute(list: _parseMultiLevelArrayWithNumbering(type.payload!)),
error: (type) => throw type,
);
}