This would be better accomplished via well-defined struct instead of something with anonymous interface elements.  Seems a bit handwavy for knowing what the API really requires in this case.