Attempt at creating a classes to serialize and write a JS API map to arcgis.com.