openapi_infrastructure 1.0.0
openapi_infrastructure: ^1.0.0 copied to clipboard
A shared package for openapi clients to use that provides helpful abstractions.
A shared package for openapi clients to use that provides helpful abstractions.
Features #
- Expose
NetworkingClientBasewith a singlesendRequestmethod. - abstract all types of requests (including multipart) via
HttpRequestBaseand responses viaHttpResponseBase UndefinedWrapper<T>which uses extension types to wrap undefined values, which are different from nullable values- A nullable value can be serialized to a json
null - An undefined value should NOT be included in a JSON map in the first place.
- A nullable value can be serialized to a json
Getting started #
Depend on the package
dart pub add openapi_infrastructure