added new helper utility for transforming api call to dictionary