Execute.fromResultResp3 constructor
Execute.fromResultResp3(
- RespType3 result
fromResultResp3
Implementation
factory Execute.fromResultResp3(RespType3<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: _parseMultiLevelArrayWithNumberingResp3(type.payload!)),
map: (type) =>
Execute(list: _parseMultiLevelMapWithNumberingResp3(type.payload!)),
error: (type) => throw type,
);
}