Convert Capabilities struct to map