Convert compose types to docker types?

Hello, I am using the loader from compose-go (loader package - github.com/compose-spec/compose-go/loader - Go Packages) to load and validate a compose file.

If I want to start a single container using the docker client.

Is there a way to transform the types.ServiceConfig (params for a single service) into the required docker types for ContainerCreate? client package - github.com/docker/docker/client - Go Packages

Thanks.