Many (most?) HTTP inspection tools, proxies, etc have a "copy as curl" feature, eg. Charles Proxy:

and Chrome DevTools.
This package could be a good starting point for this, though I believe it currently does not yet support query params.
Even round-tripping could be possible as @csells has added Dart support for going from curl to Dart http client syntax.
Many (most?) HTTP inspection tools, proxies, etc have a "copy as curl" feature, eg. Charles Proxy:

and Chrome DevTools.
This package could be a good starting point for this, though I believe it currently does not yet support query params.
Even round-tripping could be possible as @csells has added Dart support for going from curl to Dart http client syntax.