I am hardcoding a JSON string for the sake of getting this to work like so:
String featureCollectionJsonString = "{\n" +
" \"showLegend\": false,\n" +
" \"groupIdField\": \"GROUPID\",\n" +
" \"groups\": [\n" +
" {\n" +
" \"groupId\": 1,\n" +
" \"groupType\": \"pointSymbolCallout\"\n" +
" }\n" +
" ],\n" +
" \"layers\": [\n" +
" {\n" +
" \"nextObjectId\": 1,\n" +
"\t\"showLegend\": true,\n" +
"\t\"popupInfo\": {},\n" +
"\t\"layerDefinition\": {},\n" +
"\t\"featureSet\": {\n" +
"\t \"features\": [],\n" +
"\t \"geometryType\": \"esriGeometryEnvelope\"\n" +
"\t}\n" +
" }\n" +
" ]\n" +
"}";
When I have a working FeatureLayer, if I create a new FeatureCollection.fromJson with that .toJson it doesn't appear to work. There are no tables after doing so. I am not mapping anything, I am only logging out the table data.