encode method
Encodes value into raw path segments.
Implementation
Map<String, List<String>> encode(P value) {
final encode = _encode;
if (encode == null) {
throw StateError('PathParams.schema() has not been compiled.');
}
final output = PathOutput();
encode(value, output);
return output._take();
}