encodeInput property
dynamic Function(TInput input)?
encodeInput
final
Optional function that transforms typed TInput into a JSON-encodable map, list, or primitive.
For GET requests, if the encoded input is a Map, non-path parameter fields are serialized as URL query parameters. For POST/PUT/PATCH requests, the encoded value forms the JSON body.
Implementation
final dynamic Function(TInput input)? encodeInput;